Question

What is the time complexity of the optimal dynamic programming solution to the 0/1 Knapsack problem with n items and capacity W?

A O(n)
B O(n log n)
C O(n × W)
D O(2^n)
E O(n²)
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)