---
# System prepended metadata

title: Move zeroes to the left of the array

---

# Move zeroes to the left of the array
###### `tags`: `interview` `coding`
Given an array of random positive numbers, move all the zeroes to the left of the array. 

Conditions: 
1) has to be done in place ( space-constrained, ie. cannot allocate a new array)
2) the order of non-zero elements on the right do not matter

**Example:**

```
Inputs: [ 0, 1, 0, 3, 4, 0, 5]
Outputs: [ 0, 0, 0, 1, 3, 5, 4]
```



