EmbeddedInterviewLab
Topics
Interview
Coding
Toggle menu
Start Learning
All Problems
Sort Colors
Medium
•
array
•
Expected: O(n) time, O(1) space
•
Interview Context
sorting
Problem
Given an array with objects colored red (0), white (1), or blue (2), sort them in-place in order.
Show Reference Solution
Language:
C++
C
Submit
Loading...