(mut path: Vec<i32>)
| 14 | |
| 15 | impl Solution { |
| 16 | pub fn permute(mut path: Vec<i32>) -> Vec<Vec<i32>> { |
| 17 | let mut ret = vec![]; |
| 18 | Self::backtrack(&mut path, &mut ret, 0); |
| 19 | ret |
| 20 | } |
| 21 | |
| 22 | fn backtrack(path: &mut Vec<i32>, ans: &mut Vec<Vec<i32>>, begin: usize) { |
| 23 | if begin == path.len() { |
nothing calls this directly
no outgoing calls
no test coverage detected