My implementation with sorted list was wrong. I implemented with array towers of different length.
Every time i try to build longer towers using current turtle. Complexity is O(N x N).
I accepted with sorting by strength and also with my sort method too.
Thanks Brianfry for tests!
All about problems in Volume 101. If there is a thread about your problem, please use it. If not, create one with its number in the subject.
Moderator: Board moderators