...

/

Challenge: Partitioning of 0s and 1s

Challenge: Partitioning of 0s and 1s

Learn how you can solve the problem of partitioning 0s and 1s using a sorting algorithm.

We'll cover the following...

Problem

Given an array of 0s and 1s, write an algorithm to sort the array so that the 0s come first. Find the minimum number of swaps ...