Skip to content

Commit 0aaa26a

Browse files
committed
Add 0/1 Knapsack Problem implementation in C++
1 parent 85a5f6d commit 0aaa26a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CPP/algorithms/dynamic_programming/knapsack_problem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* included at most once (0/1 property).
77
* Time Complexity: O(n * W) where n = number of items, W = knapsack capacity
88
* Space Complexity: O(n * W)
9+
* Author: Saujanya Das
10+
* Date: 2025-10-02
911
*/
1012

1113
#include <iostream>

0 commit comments

Comments
 (0)