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.
This comment is hidden because it contains spoiler information about the solution
spoiler flag! x/
Can you share some resources why this is so?
Obviouslyn
pop operations to empty ann
-elements-long list.To be exact, it should be defined first what
n
is. It'sO(n^2)
only ifn
is the size of the list.Or, to be exact, popping
n
elements from end isO(n)
, while poppingn
elements from start isO(n^2)
.This comment is hidden because it contains spoiler information about the solution