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.
Nice and readable. Well done.
e is a math constant, Euler's number (2,72)
Cool solution!
What would you name it instead? I came up with the same solution, but used "item" instead of "e." (Also - how would you use "e" as a number in math? - You got me all curious now!)
This comment is hidden because it contains spoiler information about the solution
I solved the problem in the same way, but
if the array has a value of 0 , the function will return -0
This comment is hidden because it contains spoiler information about the solution
In Math "e" is a number, not sure if is a good idea to name it with "e", but your solution is great!
The array of IDs may have duplicates but don't need to find or remove them.
so, to make the IDs unique without removing or finding them, I passed the arrays to the set
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I took this statement to mean that we should find a solution that does not require the removal (even the temporary removal) of duplicates:
This comment is hidden because it contains spoiler information about the solution