Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,12 @@ void q_reverseK(struct list_head *head, int k);
void q_sort(struct list_head *head, bool descend);

/**
* q_ascend() - Remove every node which has a node with a strictly less
* q_ascend() - Delete every node which has a node with a strictly less
* value anywhere to the right side of it.
* @head: header of queue
*
* No effect if queue is NULL or empty. If there has only one element, do
* nothing.
* Memory allocated to removed nodes must be freed.
*
* Reference:
* https://leetcode.com/problems/remove-nodes-from-linked-list/
Expand All @@ -217,13 +216,12 @@ void q_sort(struct list_head *head, bool descend);
int q_ascend(struct list_head *head);

/**
* q_descend() - Remove every node which has a node with a strictly greater
* q_descend() - Delete every node which has a node with a strictly greater
* value anywhere to the right side of it.
* @head: header of queue
*
* No effect if queue is NULL or empty. If there has only one element, do
* nothing.
* Memory allocated to removed nodes must be freed.
*
* Reference:
* https://leetcode.com/problems/remove-nodes-from-linked-list/
Expand Down
2 changes: 1 addition & 1 deletion scripts/checksums
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
398b59c23f699ff1bf1e73a94503a9a91caa9207 queue.h
bff0704601c8197ae6b847647b4167664b7d6abc queue.h
b26e079496803ebe318174bda5850d2cce1fd0c1 list.h
1029c2784b4cae3909190c64f53a06cba12ea38e scripts/check-commitlog.sh
Loading