โ† Visa questions

Sort processes based on id and run time

Filed under Visa

Given an array of processes, each with an ID and a run time, sort the processes primarily by run time in ascending order, and secondarily by ID in ascending order.

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 Visa questions

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