You have a backpack that can carry a maximum weight of C. You will also be given a set of items, the…
Click here to read the complete problem statement.
If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.
While I attempted to solve it using a novel approach, I encountered an issue where my solution fails the 4th test case despite passing all the test cases I could think of.
I was wondering if @hjr265 has any thoughts about revealing the test cases?
It would be immensely helpful for me.