s0160
This commit is contained in:
15
include/s0160_intersection_of_two_linked_lists.hpp
Normal file
15
include/s0160_intersection_of_two_linked_lists.hpp
Normal 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
|
Reference in New Issue
Block a user