HarshCasper / NeoAlgo

Bringing all Data Structures and Algorithms under one Roof ⚡
MIT License
875 stars 1.05k forks source link

Find Index of 0 to be replaced with 1 to get longest continuous sequence of 1s in a binary array #7506

Closed ishitakapoor26 closed 3 years ago

ishitakapoor26 commented 3 years ago

Have you read the Contributing Guidelines on Pull Requests?

Yes

Description

Given an array of 0s and 1s, find the position of 0 to be replaced with 1 to get longest continuous sequence of 1s.

Checklist

Related Issues or Pull Requests

7499

ishitakapoor26 commented 3 years ago

@siddharth25pandey pls review pr.