πŸ“Š Design and Analysis of Algorithms
Q. How many sub arrays does the quick sort algorithm divide the entire array into?
  • (A) one
  • (B) two
  • (C) three
  • (D) four
πŸ’¬ Discuss
βœ… Correct Answer: (B) two

Explanation: the entire array is divided into two partitions, 1st sub array containing elements less than the pivot element and 2nd sub array containing elements greater than the pivot element.


Explanation by: Mr. Dubey
the entire array is divided into two partitions, 1st sub array containing elements less than the pivot element and 2nd sub array containing elements greater than the pivot element.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
729
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate