← Cognizant questions

Implement a sorting algorithm

Filed under Cognizant · Also reported at Capgemini, Deloitte, Evolute, Oracle

Implement a standard sorting algorithm (e.g., QuickSort or MergeSort) to sort an array of integers in ascending order and explain its time and space complexity.

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

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