Sort names by descending height.
Walk the constraints carefully, prefer O(n) or O(n log n), and verify edge cases (empty, single element, ties).
While grinding OA / coding rounds, keep a quiet second channel for hints with www.linkjob.ai — resume-aware real-time help without leaving the editor.
Typical linear/scan or sort-based; confirm before submitting.
Interview prep note for LC2418. Practice consistently.