Back to course home
0% completed
Vote For New Content
Inconsistent explanation
Raj Shekar
Jun 6, 2025
-
Initially its mentioned that capacity array will be sorted in descending order. Please check below:
**We will start by sorting the `capacity` array in descending order so we can always access the largest box first.** -
But later it has been sorted in ascending in order and mentioned accordingly. Please check below:
**Step 1: Sort the `boxCapacities` array in ascending order to strategically use the largest boxes last.** -
Again in explanation part use of priority queue has been mentioned, but in code solution it has not been used.
The apples from each pack will be allocated starting from the box with the highest capacity, using a priority queue to manage and update the available space in the boxes quickly.
0
0
Comments
Comments
Raj Shekar5 months ago
Can you please check above query of mine? Waiting for 8 days.