Test Cases & Chat
Part 1
current
Test 1
input:nums = [1,2,3]
expect:[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
Test 2
input:nums = [0,1]
expect:[[0,1],[1,0]]
Test 3
input:nums = [1]
expect:[[1]]
Choose your coach
Pick a style and how you want to communicate
then
Loading...
OUTPUT
Run code to see output...
Part 1
current
Test 1
input:nums = [1,2,3]
expect:[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
Test 2
input:nums = [0,1]
expect:[[0,1],[1,0]]
Test 3
input:nums = [1]
expect:[[1]]
Choose your coach
Pick a style and how you want to communicate
then