mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 09:23:19 +08:00
更新 problem 25
This commit is contained in:
@ -8,16 +8,18 @@ k is a positive integer and is less than or equal to the length of the linked li
|
||||
|
||||
Example:
|
||||
|
||||
```c
|
||||
Given this linked list: 1->2->3->4->5
|
||||
|
||||
For k = 2, you should return: 2->1->4->3->5
|
||||
|
||||
For k = 3, you should return: 3->2->1->4->5
|
||||
```
|
||||
|
||||
Note:
|
||||
|
||||
Only constant extra memory is allowed.
|
||||
You may not alter the values in the list's nodes, only nodes itself may be changed.
|
||||
- Only constant extra memory is allowed.
|
||||
- You may not alter the values in the list's nodes, only nodes itself may be changed.
|
||||
|
||||
|
||||
## 题目大意
|
Reference in New Issue
Block a user