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.
wrote the same thing word for word
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Good
I went for counter object, so dont beat yourself up
better readability
I think it's codewars algorithm
Totally agree. It's also possible to use set(arr) too. The complexity will eventually be O(n) compared to quadradic O(n^2) in this solution.
could u pls explain how your code exactly works , i tried it in vs code and returned an error
man this is clever. Kudos to you
Smart, like it alot
it is clever indeed maybe not very efficient but clever indeed
This comment is hidden because it contains spoiler information about the solution
why not use a simple list comprehension instead? I'm surprised I have to scroll so far down solutions to see anyone else doing this
O(n^2)... terrible idea as time goes on you will hate nested loops only when you want to do N-D array
such that N is [2, n)
Loading more items...