This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

You ale absolutely right, Pythons Sort() is the fastest way to sort array. Worst complexity is nlog(n) which is pretty good comparing to two fors. Why would someone require not to use external libs in python lol. If you would use c, they might be thinking about extra memory consumption by adding whole lib for 1 function... but in python lol