Sail E0 Webinar
Question
The given array is arr = {2,3,4,1,6}. What are the pivots that are returned as a result of subsequent partitioning?
Options:
A .  1 and 3
B .  3 and 1
C .  2 and 6
D .  6 and 2
Answer: Option A


The call to partition returns 1 and 3 as the pivot elements.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers