issues
search
Sunny-117
/
js-challenges
✨✨✨ Challenge your JavaScript programming limits step by step
https://juejin.cn/column/7244788137410560055
2.03k
stars
235
forks
source link
全排列
#507
Open
topulikeweb
opened
8 months ago
topulikeweb
commented
8 months ago
/**
@param {number[]} nums
@return {number[][]}
利用回溯算法找出数组的全排列
[1,2,3]=>[
[ 1, 2, 3 ],
[ 1, 3, 2 ],
[ 2, 1, 3 ],
[ 2, 3, 1 ],
[ 3, 1, 2 ],
[ 3, 2, 1 ]
] */
/**