Refactor structure
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
#ifndef S0019_REMOVE_NTH_NODE_FROM_END_OF_LIST_HPP
|
||||
#define S0019_REMOVE_NTH_NODE_FROM_END_OF_LIST_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) {}
|
||||
};
|
||||
#include "structures.hpp"
|
||||
|
||||
class S0019 {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user