Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Your reply is non-sensical...I'm not sure where language comes into play here.
This solution runs in O(N^2) because it requires iterating through the array twice before returning.
With a two pointer solution, you traverse the array once, in O(N), which is more efficient.
This solution is terribly inefficient.
Don't do this during an interview.
Don't do this in an interview