Refactor structure

This commit is contained in:
2023-01-30 20:17:47 +08:00
parent 606185176c
commit 038fa42883
12 changed files with 47 additions and 70 deletions

View File

@@ -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: