Technical Interview Preparation

Get hired by top tech companies with our comprehensive interview preparation.

Get Started

Tag: Recursive

Array Sorting

Water Jugs Problem

Suppose you are given n red and n blue water jugs, all of different shapes and sizes. All red jugs hold different amounts of water, as do the blue ones. Moreover, there is a blue jug for every red jug that holds the same amount of water and vice versa.

Do NOT follow this link or you will be banned from the site!