07009. First nonzero element in array
difficulty ·answer type: strategy·✓Not solved
Problem
You are given an array of numbers. From the beginning of the array to some position, all elements are zero; after that position, all elements are nonzero. If you don't know the size of the array, how do you find the position of the first nonzero element?
Submit answer
You must be signed in to submit answers.