This commit is contained in:
2022-12-02 17:24:26 +08:00
parent 88ec5dc3d8
commit 4099f80edb
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#ifndef S0160_INTERSECTION_OF_TWO_LINKED_LISTS_HPP
#define S0160_INTERSECTION_OF_TWO_LINKED_LISTS_HPP
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(nullptr) {}
};
class S0160 {
public:
ListNode *getIntersectionNode(ListNode *headA, ListNode *headB);
};
#endif