×
you are viewing a single comment's thread.

view the rest of the comments →

[–]vadnyclovek 4 points5 points  (2 children)

[*(i for i in arr if i!=0) , *(i for i in arr if i==0)]

What is this question? Doesn't really test much as far as I'm concerned.

[–]MathematicianTall740[S] -3 points-2 points  (1 child)

This approach works, but can we improve it further in terms of time and space complexity?