Please sign in to comment.
Fixed arrayRemove() helper function
The function was broken in a way that when it actually removed an item from the array, it would run over the end of the array, throwing an exception trying to work with a null element. Fixed by returning directly after deleting an element. This is OK since the method is only used for arrays without duplicate elements. Also added a test case that uses arrayRemove() (indirectly).
- Loading branch information...
Showing with 20 additions and 0 deletions.