Questions › Technical PM › Top-Interview
Move all zeros to the end of an array.
- Technical PM
- Top-Interview
- Easy
- 20 min
Move all zeros to the end of an array.
Additional context: Given an unsorted array of integers, write a function that moves all zeros to the end of the array.
What this question tests
- Technical PM
- Structured problem solving
- Communication
- Trade-off reasoning
Practise this question under interview conditions. Answer it out loud against a timer with an AI interviewer that asks follow-ups, then review the scored report.
Related Technical PM questions
- Design a file system.Top-Interview · Technical PM · Hard
- What is Pyspark?Top-Interview · Technical PM · Hard
- Given a matrix with a rat, bread, cat, and obstacles, find a path from the rat to the bread that maximizes the minimum distance from cat.Top-Interview · Technical PM · Hard
- Design typeahead autocomplete for person search in Linkedin.Top-Interview · Technical PM · Hard
- Given an array of integers, return the pairs with the minimum absolute difference between them.Top-Interview · Technical PM · Hard
- Design an online banking application.Top-Interview · Technical PM · Hard
All Technical PM questions · Product manager interview questions by skill area