Problem 1: Permutations Link to the problem: https://leetcode.com/problems/permutations/ class Solution { public List<List<Integer>> permute(int[] nums){ List<List<Integer>> res = new ArrayList<>(); backtrack(nums, 0, res); ...

Markdown supported · ⌘↵ to post
No responses yet.