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.
you should not mutate the
tactics
dictionarySo we have the initial sequence (seq = [0, 1, 2, 2]) and we are adding the next natural number after 2 which is 3. The number of 3s added to the list is determined by the integer at the 3rd index of seq (seq[3] == 2). So now we have [0, 1, 2, 2, 3, 3]. Next is 4 and we add three 4s because seq[4] == 3. Next we add three 5s because seq[5] == 3, and so on.