1.

Quick sort is a __________(a) greedy algorithm(b) divide and conquer algorithm(c) dynamic programming algorithm(d) backtracking algorithmI got this question in an interview for internship.My question comes from Quicksort in chapter Sorting of Data Structures & Algorithms II

Answer»

The correct choice is (b) DIVIDE and conquer ALGORITHM

Explanation: Quick sort is a divide and conquer algorithm. Quick sort first PARTITIONS a large array into two smaller sub-arrays. And then RECURSIVELY sorts the sub-arrays.



Discussion

No Comment Found

Related InterviewSolutions