File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ void q_sort(struct list_head *head, bool descend);
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.
210
211
*
211
212
* Reference:
212
213
* https://leetcode.com/problems/remove-nodes-from-linked-list/
@@ -222,6 +223,7 @@ int q_ascend(struct list_head *head);
222
223
*
223
224
* No effect if queue is NULL or empty. If there has only one element, do
224
225
* nothing.
226
+ * Memory allocated to removed nodes must be freed.
225
227
*
226
228
* Reference:
227
229
* https://leetcode.com/problems/remove-nodes-from-linked-list/
Original file line number Diff line number Diff line change 1
- 186d420b53e21c6daf8eabe980a5b90780c53bcd queue.h
1
+ db6784ff3917888db4d1dceaa0570d99ed40e762 queue.h
2
2
3337dbccc33eceedda78e36cc118d5a374838ec7 list.h
You can’t perform that action at this time.
0 commit comments