The problem, in one line. A sorted list of distinct numbers was spun so that some front part moved to the back. Return the smallest number, without scanning everything. LeetCode 153.
The tell. “Sorted, then rotated” plus a log-time demand. The smallest number is the one place where the order drops, and a comparison at the middle can say which side holds that drop.
Included with a plan
This solution is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.