Skip to content

Commit

Permalink
Merge pull request youngyangyang04#1375 from Jerry-306/patch-56
Browse files Browse the repository at this point in the history
纠正 0046.全排列 TS 版本代码
  • Loading branch information
youngyangyang04 authored Jun 15, 2022
2 parents 3cf6083 + 2da33bf commit 919da74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/0046.全排列.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function permute(nums: number[]): number[][] {
return resArr;
function backTracking(nums: number[], route: number[]): void {
if (route.length === nums.length) {
resArr.push(route.slice());
resArr.push([...route]);
return;
}
let tempVal: number;
Expand Down

0 comments on commit 919da74

Please sign in to comment.