s0203
This commit is contained in:
17
include/s0203_remove_linked_list_elements.hpp
Normal file
17
include/s0203_remove_linked_list_elements.hpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef S0203_REMOVE_LINKED_LIST_ELEMENTS_HPP
|
||||
#define S0203_REMOVE_LINKED_LIST_ELEMENTS_HPP
|
||||
|
||||
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) {}
|
||||
};
|
||||
|
||||
class S0203 {
|
||||
public:
|
||||
ListNode* removeElements(ListNode* head, int val);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user