Thanos Sort
Interview questions
Is Thanos sort a real sorting algorithm?
No, it is a joke. It throws away data, so the output is not a sorted version of the input.
Does Thanos sort always finish?
Yes, the list keeps halving, and one element is always sorted. The total work is O(n), because each round checks a list half the previous size.
Thanos sort vs Stalin sort: what is the difference?
Thanos sort deletes a random half each round. Stalin sort deletes every element smaller than the one before it in one pass.
