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);
201201void q_sort (struct list_head * head , bool descend );
202202
203203/**
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
205205 * value anywhere to the right side of it.
206206 * @head: header of queue
207207 *
208208 * No effect if queue is NULL or empty. If there has only one element, do
209209 * nothing.
210- * Memory allocated to removed nodes must be freed.
211210 *
212211 * Reference:
213212 * https://leetcode.com/problems/remove-nodes-from-linked-list/
@@ -217,13 +216,12 @@ void q_sort(struct list_head *head, bool descend);
217216int q_ascend (struct list_head * head );
218217
219218/**
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
221220 * value anywhere to the right side of it.
222221 * @head: header of queue
223222 *
224223 * No effect if queue is NULL or empty. If there has only one element, do
225224 * nothing.
226- * Memory allocated to removed nodes must be freed.
227225 *
228226 * Reference:
229227 * 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
22b26e079496803ebe318174bda5850d2cce1fd0c1 list.h
331029c2784b4cae3909190c64f53a06cba12ea38e scripts/check-commitlog.sh
You can’t perform that action at this time.
0 commit comments