MCPcopy Create free account
hub / github.com/StudyRust/leetcode_rust / combine

Method combine

77-combinations.rs:17–22  ·  view source on GitHub ↗
(n: i32, k: i32)

Source from the content-addressed store, hash-verified

15 }
16
17 pub fn combine(n: i32, k: i32) -> Vec<Vec<i32>> {
18 let mut path = vec![];
19 let mut ret = vec![];
20 Self::backtrace(n, k as usize, 1, &mut path, &mut ret);
21 ret
22 }
23}
24
25fn main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected