GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/cpp/021-030/Swap Nodes in Pairs.cpp at master · gzc/leetcode Expand file tree/ Copy pathSwap Nodes in Pairs.cppMore file actions 15 lines (12 loc) · 339 Bytes / Copy pathSwap Nodes in Pairs.cppFile metadata and controls15 lines (12 loc) · 339 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 class Solution { public: ListNode* swapPairs(ListNode* head) { if (head == nullptr || head->next == nullptr) { return head; } ListNode* new_head = head->next; head->next = swapPairs(new_head->next); new_head->next = head; return new_head; } }; |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |