
We need to do these 3 things:
- Separate the
0
s and non-0
s. - Find out where the non-
0
s need to be index-wise - Keeping track of the number of
0
s

We have a potential brute force solution! This could be our pseudocode.
xxxxxxxxxx
temp = []
zero_count = 0
iterate through array:
if nonzero, push to new temp
if zero, increment count
for zero_count times:
push to temp
return temp
OUTPUT
Results will appear here.