From f5bc5753789f9e7c78eea91c02559a00848a9e7d Mon Sep 17 00:00:00 2001 From: wxchen Date: Mon, 8 Jul 2024 23:34:14 +0800 Subject: [PATCH] home --- .gitignore | 3 ++- CMakeLists.txt | 2 +- main.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6a8bc10..e1b8cb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .vscode -build \ No newline at end of file +build +main.exe diff --git a/CMakeLists.txt b/CMakeLists.txt index e7582cb..5280ba6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.6) project(lc VERSION 0.1.0) include(CTest) diff --git a/main.cpp b/main.cpp index a2aed2c..e71f147 100644 --- a/main.cpp +++ b/main.cpp @@ -3,7 +3,7 @@ * @Version: 1.0 * @Autor: wxchen * @Date: 2022-11-21 15:27:10 - * @LastEditTime: 2022-11-21 21:08:42 + * @LastEditTime: 2024-07-03 23:15:58 */ #include #include @@ -38,9 +38,9 @@ class Solution { int main(int, char**) { - // ListNode* head = new ListNode(1); - // head -> next = new ListNode(3); - // head -> next -> next = new ListNode(2); + ListNode* head = new ListNode(1); + head -> next = new ListNode(3); + head -> next -> next = new ListNode(2); Solution s; std::cout << s.reversePrint(head)[0] << s.reversePrint(head)[1] << s.reversePrint(head)[2] << std::endl;