K'th smallest/largest element, non-repeating character, and array rotation
Filed under Times Internet
The question
Solve classic programming problems including finding the K'th smallest or largest element in an unsorted array, finding the first non-repeating character from a stream, finding the length of the smallest substring with maximum distinct characters, searching in a sorted and rotated array, and quickly finding multiple left rotations of an array.
No write-up yet. Related questions below have one.
Related Times Internet questions
Collected from public candidate posts and coding forums. Updated Nov 2026.