In GUI browsers, I have this page themed dynamically, so when it's dark outside, you'll get a dark theme. You need JS enabled if you want the dynamic theme; I don't run any JS-based analytics or tracking.
Divide and conquer.
Algorithm:
Find the pivot value:
Time complexity: