Coding Mock Interview - Move All Zeros To End Of Array (with Google SWE)
Ace your software engineering interviews with our complete course: https://bit.ly/3wTag6U
A Google software engineer moves all zeros in an integer array to the end while maintaining the relative order of non-zero elements.
0:00 - Intro
0:42 - Move zeros in integer array
1:54 - Automated sorting of arrays with zeros, stable ordering
5:38 - Moving zeros and nonzeros in arrays
9:38 - Function Move zeros, fill index, iterate over data
11:11 - Fill index with zeros at end
12:11 - Test cases for arrays with zeros
13:10 - Example iterate over data, modify accordingly
15:39 - Perfect interview, good challenges, improvement
18:30 - Clarifying questions smart choice
Related videos:
Top 10 Behavior…
A Google software engineer moves all zeros in an integer array to the end while maintaining the relative order of non-zero elements.
0:00 - Intro
0:42 - Move zeros in integer array
1:54 - Automated sorting of arrays with zeros, stable ordering
5:38 - Moving zeros and nonzeros in arrays
9:38 - Function Move zeros, fill index, iterate over data
11:11 - Fill index with zeros at end
12:11 - Test cases for arrays with zeros
13:10 - Example iterate over data, modify accordingly
15:39 - Perfect interview, good challenges, improvement
18:30 - Clarifying questions smart choice
Related videos:
Top 10 Behavior…
Ready for your next step?
Put these tips to work — thousands of new jobs are added every day.
Browse jobs Get job alertsRead more on this topic
This video is shown with YouTube's player and belongs to its creator, Aced (formerly Exponent).