MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / permute

Method permute

java/0046-permutations.java:6–10  ·  view source on GitHub ↗
(int[] nums)

Source from the content-addressed store, hash-verified

4class Solution {
5
6 public List<List<Integer>> permute(int[] nums) {
7 List<List<Integer>> ans = new ArrayList<>();
8 function(ans, nums, 0);
9 return ans;
10 }
11
12 public void function(List<List<Integer>> ans, int[] arr, int start) {
13 if (start == arr.length) {

Callers

nothing calls this directly

Calls 1

functionMethod · 0.95

Tested by

no test coverage detected