Attempt the question, check the explanation, and continue with similar questions to build confidence before exams.
Always sorts in O(n) time
Uses less redundant comparisons
Never consumes memory
Is not dependent on the order of input
Video Explanation
Watch Video Solution
Login to get access
Continue with nearby questions to strengthen the same chapter concept while you still have the context fresh in mind.