Move all zeros to the end of an array in place, keeping the order of the other elements, in one pass with O(1) extra space.
Interview Insights and Technical Explorations
Move all zeros to the end of an array in place, keeping the order of the other elements, in one pass with O(1) extra space.
Find the second largest element of an array in a single pass, handling duplicates, negative numbers and arrays with fewer than two distinct values.