โ† TCS questions
CodingReported in a candidate post, Jul 2024

In-place sort of 5s, 6s, and 7s

Filed under TCS

Sort an array containing only the digits 5, 6, and 7 in a single pass with O(N) time complexity and constant space, without using built-in sorting functions.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.