Test Cases & Chat
Part 1
current
Test 1
input:head = [1,2,3,4,5], k = 2
expect:[2,1,4,3,5]
Test 2
input:head = [1,2,3,4,5], k = 3
expect:[3,2,1,4,5]
Test 3
input:head = [1,2,3,4,5], k = 1
expect:[1,2,3,4,5]
Test 4
input:head = [1], k = 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:head = [1,2,3,4,5], k = 2
expect:[2,1,4,3,5]
Test 2
input:head = [1,2,3,4,5], k = 3
expect:[3,2,1,4,5]
Test 3
input:head = [1,2,3,4,5], k = 1
expect:[1,2,3,4,5]
Test 4
input:head = [1], k = 1
expect:[1]
Choose your coach
Pick a style and how you want to communicate
then