Skip to content

Latest commit

 

History

History
executable file
·
11 lines (6 loc) · 305 Bytes

283.md

File metadata and controls

executable file
·
11 lines (6 loc) · 305 Bytes

283. Move Zeroes

Easy question. Just remove all zeroes from the array.

we can record two array and concat them one for zeroes and another for general numbers.

oh...You must do this in-place without making a copy of the array. Minimize the total number of operations.

how about exchange? yeah! AC!