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.
set is like a fun that if any elem is repeated it will del it so he will ran the loop 2 times not like 10 or something and it can be more than 2 but cuz there is just 2 kine of numbers in the same list it will get 2 and the repeated one will get del
Reversed
isn't repeated in a row, they're far apart, so that doesn't count. See this example:That's the concept of recursion.
As you grow, you'll get to use it more often
every element in arr does arr.acount(x)<=1, if the arr is huge(too many elements), it will take long time...
This comment is hidden because it contains spoiler information about the solution
print
andreturn
are not the same ;-)