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.
Also, looking up if an element is in a set happens in a constant time, i. e., it always takes the same amount of time, regardless of the size of the set. Looking up if an element is in a list happens in a linear time, i. e. in the worst case, it has to go over all the elements of the list, and here, it would be very inefficient since we have to search the data structures repeatedly.
cause the element in set() is single, and it will delete the repeated
This comment is hidden because it contains spoiler information about the solution
You should ask yourself where did you get that 1.5 that you used there.
Please explain. I wrote it
Your while condition is wrong, where did you get that?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution