e.g. 0000000....01......11111.....1.. infinite
ith position this wher 0 is converted in to 1
Data Structure Used: Array
Algorithm:(Done Will Post Soon)
Working Code:
Time Complexity O(logn) yes its logn ??
Space Complexity O(1)
Run Here
No comments:
Post a Comment
Hi thanks , we will get back to you shortly !!!