mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-05-11 18:46:39 +08:00
330 B
330 B
id, title, topics, difficulty, source
| id | title | topics | difficulty | source | |
|---|---|---|---|---|---|
| 9 | Move Zeroes |
|
easy | https://leetcode.com/problems/move-zeroes/ |
Question
'''
Given an array of integers, write a function to move all zeroes to the end of it while
maintaining the relative order of the non-zero elements.
[0, 1, 0, 3, 12] => [1, 3, 12, 0, 0].
'''