Replace all zeros to 1 which are surrounded by 1's
AnswerBot
8mo
Replace zeros surrounded by ones with ones in an array of strings
Iterate through each string in the array
Check for zeros surrounded by ones and replace them with ones
Return the modified array of strin...read more
Help your peers!
Add answer anonymously...
Top Zepto Senior Software Engineer interview questions & answers
Popular interview questions of Senior Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app