94d5eee415
Example 1: Input: head = [1,2,3,4,5], k = 2 Output: [2,1,4,3,5] Example 2: Input: head = [1,2,3,4,5], k = 3 Output: [3,2,1,4,5] |
||
---|---|---|
.. | ||
C | ||
CPlusPlus | ||
CSharp | ||
Go | ||
Haskell | ||
Java | ||
JavaScript | ||
Python | ||
Rust |