(n: usize, k: usize)
| 586 | } |
| 587 | |
| 588 | fn combinations(n: usize, k: usize) -> Vec<Vec<usize>> { |
| 589 | let mut out = Vec::new(); |
| 590 | let mut current = Vec::with_capacity(k); |
| 591 | combinations_recursive(0, n, k, &mut current, &mut out); |
| 592 | out |
| 593 | } |
| 594 | |
| 595 | fn combinations_recursive( |
| 596 | start: usize, |
no test coverage detected