mirror of
https://github.com/arkorty/LeetCode.git
synced 2026-03-18 00:57:17 +00:00
Refactor almost everything
This commit is contained in:
@@ -7,7 +7,7 @@ struct ListNode {
|
||||
};
|
||||
|
||||
class Solution {
|
||||
public:
|
||||
public:
|
||||
ListNode *reverseList(ListNode *head) {
|
||||
ListNode *prev = nullptr, *next = nullptr, *curr = head;
|
||||
while (curr != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user