Algorithm · Waymo · Medium
Requirements Input: digits from 0 through 9 arranged in their display order, from left to right. Output: return true exactly when turning the display upside down by 180 degrees produces that identical digit sequence. Preparation Learn the rotation table for all ten digits by heart. Rehearse implementing both the inward two-pointer validator and the recursive generator in one session, since interviews commonly request them back-to-back. Draw each digit after a 180-degree turn…
Checking your access…