Java Playground - knapsack problem: Online Interpreter, Compiler & Editor | Sololearn