Read the Python. State the time and space complexity. Get judged.
Answers are free text — O(n log n), nlogn and
N·logN all count. Time and space are marked separately, so a
half-right answer scores half. Unless a question says otherwise, the space
asked for is auxiliary: the returned answer does not count against you.
The snippets are the classics — Blind 75, NeetCode 150 / 250 and LeetCode's Top 100 Liked — plus a handful of pure drills where the shape of the loop is the whole question.
| Topic | Time | Space |
|---|