MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / subsets

Method subsets

java/0078-subsets.java:6–11  ·  view source on GitHub ↗
(int[] nums)

Source from the content-addressed store, hash-verified

4class Solution {
5
6 public List<List<Integer>> subsets(int[] nums) {
7 List<List<Integer>> ans = new ArrayList<>();
8 List<Integer> list = new ArrayList<>();
9 helper(ans, 0, nums, list);
10 return ans;
11 }
12
13 public void helper(
14 List<List<Integer>> ans,

Callers

nothing calls this directly

Calls 1

helperMethod · 0.95

Tested by

no test coverage detected