Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codedecks-in/LeetCode-Solutions
/ permute
Method
permute
Java/Perm_Recus.java:1–5 ·
view source on GitHub ↗
(int[] nums)
Source
from the content-addressed store, hash-verified
1
public
List<List<Integer>> permute(
int
[] nums) {
2
List<List<Integer>> result =
new
ArrayList<>();
3
helper(0, nums, result);
4
return
result;
5
}
6
7
private
void
helper(
int
start,
int
[] nums, List<List<Integer>> result)
8
{
Callers
nothing calls this directly
Calls
1
helper
Method · 0.45
Tested by
no test coverage detected