Skip to content

Commit

Permalink
Change readme
Browse files Browse the repository at this point in the history
  • Loading branch information
europeanplaice committed Feb 13, 2022
1 parent 0ae1e1b commit 3897b3d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions num_set.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-1
1
2
3
3
4
5
6
7
-8
9
-10
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ subset_sum = "0.5.0"
use subset_sum::dp::find_subset;

fn main() {
let result = find_subset(&vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 10);
let result = find_subset(&vec![1, 2, 3, 4, 5, 6, 7, -8, 9, -10], -18);
println!("{:?}", result);
}
```
Output
```
[[1, 2, 3, 4], [2, 3, 5], [1, 4, 5], [1, 3, 6], [4, 6], [1, 2, 7], [3, 7], [2, 8], [1, 9], [10]]
[[-8, -10]]
```

0 comments on commit 3897b3d

Please sign in to comment.