Refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "s0024_swap_nodes_in_pairs.hpp"
|
||||
|
||||
ListNode* swapPairs(ListNode* head) {
|
||||
ListNode* S0024::swapPairs(ListNode* head) {
|
||||
if (head == nullptr || head->next == nullptr) {
|
||||
return head;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user