s0021
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-05 10:02:49 +08:00
parent 955655bb0f
commit 2031712234
2 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef S0021_MERGE_TWO_SORTED_LISTS
#define S0021_MERGE_TWO_SORTED_LISTS
struct ListNode {
int val;
ListNode* next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode* next) : val(x), next(next) {}
};
#include <limits>
class Solution {
public:
ListNode* mergeTwoLists(ListNode* list1, ListNode* list2);
};
#endif