algorithms.tutorialhorizon.com

Find the Index from which 0 starts | Algorithms

Given an array of integer which 1's followed by 0's. Find the Given an array of integer which 1's followed by 0's. Find the starting index of 0. Example: int [] a = {1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0}; First Index from where 0 starts: 10