Chocolate Distribution Problem | Coding Interview | Sorting

Ganesh Prasad
Javarevisited
Published in
3 min readSep 9, 2021

--

This problem has been asked in the initial coding round of the Flipkart interview.

For a better grasp of the problem, try to code the solution yourself. If you get stuck at any point, I have provided the code with its explanation.

This article is part of the 30 Days preparation plan for coding interviews.

--

--

Ganesh Prasad
Javarevisited

Backend Developer at Appscrip | C++ veteran, 💜 Dart