MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / basic

Function basic

39. Combination Sum/src/main.rs:42–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41 #[test]
42 fn basic() {
43 assert_eq!(Solution::combination_sum(
44 vec![2,3,6,7], 7),
45 vec![
46 vec![2,2,3],
47 vec![7]
48 ]
49 );
50 assert_eq!(Solution::combination_sum(
51 vec![2,3,5], 8),
52 vec![
53 vec![2,2,2,2],
54 vec![2,3,3],
55 vec![3,5]
56 ]
57 );
58 }
59}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected