Question
The given array is arr = {2,3,4,1,6}. What are the pivots that are returned as a result of subsequent partitioning?
Answer: Option A
Was this answer helpful ?
The call to partition returns 1 and 3 as the pivot elements.
Was this answer helpful ?
Submit Solution