diff options
author | Santo Cariotti <santo@dcariotti.me> | 2023-01-24 11:01:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 11:01:25 +0100 |
commit | d431d1602852b4f94d84e5f303bdfb39b1dc5a75 (patch) | |
tree | 6661a857bee96e678ac4ef88954588466878f310 /Year_2/Algorithms/resto.cc | |
parent | 310f312a04cf292a4b29d45b1bdb13077d9a1cf7 (diff) |
Diffstat (limited to 'Year_2/Algorithms/resto.cc')
-rw-r--r-- | Year_2/Algorithms/resto.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Year_2/Algorithms/resto.cc b/Year_2/Algorithms/resto.cc index 53fd6f6..87ab43d 100644 --- a/Year_2/Algorithms/resto.cc +++ b/Year_2/Algorithms/resto.cc @@ -12,7 +12,7 @@ change(vector<int>& coins, int sum) int n = coins.size(); int* table = new int[sum+1]; - memset(table, sum, 0); + memset(table, 0, sum); table[0] = 0; for (int i = 1; i < sum+1; ++i) { |