更新 problem 25

This commit is contained in:
YDZ
2019-04-03 07:33:40 +08:00
parent 693b9c8bba
commit 2fd2c4e246
3 changed files with 4 additions and 2 deletions

View File

@ -8,16 +8,18 @@ k is a positive integer and is less than or equal to the length of the linked li
Example: Example:
```c
Given this linked list: 1->2->3->4->5 Given this linked list: 1->2->3->4->5
For k = 2, you should return: 2->1->4->3->5 For k = 2, you should return: 2->1->4->3->5
For k = 3, you should return: 3->2->1->4->5 For k = 3, you should return: 3->2->1->4->5
```
Note: Note:
Only constant extra memory is allowed. - Only constant extra memory is allowed.
You may not alter the values in the list's nodes, only nodes itself may be changed. - You may not alter the values in the list's nodes, only nodes itself may be changed.
## 题目大意 ## 题目大意