In this article, we will understand what fitting shelves problem is and will see a greedy approach algorithm of solving this problem.
What does Fitting Shelves Problem say?
So, the problem states that given a wall having length W, and two shelves of length m, and n, we are tasked with fitting the wall of length W with shelves of length m and n in such a way that the space left empty(which can't be filled with shelf) is to be minimized, and if possible the solution having larger number of longer ...
Published on May 12, 2022 13:52