File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -201,13 +201,12 @@ void q_reverseK(struct list_head *head, int k);
201
201
void q_sort (struct list_head * head , bool descend );
202
202
203
203
/**
204
- * q_ascend() - Remove every node which has a node with a strictly less
204
+ * q_ascend() - Delete every node which has a node with a strictly less
205
205
* value anywhere to the right side of it.
206
206
* @head: header of queue
207
207
*
208
208
* No effect if queue is NULL or empty. If there has only one element, do
209
209
* nothing.
210
- * Memory allocated to removed nodes must be freed.
211
210
*
212
211
* Reference:
213
212
* https://leetcode.com/problems/remove-nodes-from-linked-list/
@@ -217,13 +216,12 @@ void q_sort(struct list_head *head, bool descend);
217
216
int q_ascend (struct list_head * head );
218
217
219
218
/**
220
- * q_descend() - Remove every node which has a node with a strictly greater
219
+ * q_descend() - Delete every node which has a node with a strictly greater
221
220
* value anywhere to the right side of it.
222
221
* @head: header of queue
223
222
*
224
223
* No effect if queue is NULL or empty. If there has only one element, do
225
224
* nothing.
226
- * Memory allocated to removed nodes must be freed.
227
225
*
228
226
* Reference:
229
227
* https://leetcode.com/problems/remove-nodes-from-linked-list/
Original file line number Diff line number Diff line change 1
- 398b59c23f699ff1bf1e73a94503a9a91caa9207 queue.h
1
+ bff0704601c8197ae6b847647b4167664b7d6abc queue.h
2
2
b26e079496803ebe318174bda5850d2cce1fd0c1 list.h
3
3
1029c2784b4cae3909190c64f53a06cba12ea38e scripts/check-commitlog.sh
You can’t perform that action at this time.
0 commit comments