why not? I like this solution?
Can you explain why iterating and removing items from the array is bad practice?
My solution is pretty similar to this.
Iterating from the end... Yep, that's clever)
Debatable, this solution does win in space complexity.
You shouldn't iterate through an array and remove from it at the same time, even if doing it from the end works.
well i guess you can't be blamed. the tests don't enforce immutability.
Yes, it was pretty straightforward.
Probably the shortest solution ;)
I did not come up with this n function. It is really clever.
Ahh! We have the same solution.