Sort Colors

Try to solve the Sort Colors problem.

Statement

Given an array, colors, which contains a combination of the following three elements:

  • 00 (representing red)

  • 11 ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy