Skip to content

Commit

Permalink
Renamed knapsack
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Nov 21, 2024
1 parent 8d016db commit 4906d75
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/include/algoplus.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#ifndef ALGOPLUS_H
#define ALGOPLUS_H

#include "../algorithms/dynamic_programming/coin_change.h"
#include "../algorithms/dynamic_programming/knapsack_2d.h"
#include "../algorithms/dynamic_programming/knapsack_1d.h"
#include "../algorithms/dynamic_programming/fib.h"
#include "../algorithms/dynamic_programming/kadane.h"
#include "../algorithms/dynamic_programming/lcs.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "../../../src/algorithms/dynamic_programming/coin_change.h"
#include "../../../src/algorithms/dynamic_programming/knapsack_1d.h"
#include "../../../third_party/catch.hpp"

using namespace std;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "../../../third_party/catch.hpp"
#include "../../../src/algorithms/dynamic_programming/knapsack.h"
#include "../../../src/algorithms/dynamic_programming/knapsack_2d.h"

TEST_CASE("Testing knapsack 0/1 [1]") {
std::vector<std::pair<int, int> > v = {{10, 60}, {20, 100}, {30, 120}};
Expand Down

0 comments on commit 4906d75

Please sign in to comment.