DEV Community

Discussion on: Daily Challenge #154 - Stable Arrangement

Collapse
 
idanarye profile image
Idan Arye

You are pop()ing items from the array without push()ing them back. Shouldn't the result contain all the elements of the original array?

Collapse
 
fitsum profile image
fitsum

ah. good point