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.
why are you posting here??? nobody even knows what you're talking about. => post in the discourse section of the related kata.
I need faster algorithm. Problem - to leave only the last occurrences of each element in the sequence; the remaining elements must be removed from the sequence. Thank you.
Given: 1 2 3 3 2 1 4 1 2 0
Answer:3 4 1 2 0