This commit is contained in:
2024-07-08 23:34:14 +08:00
parent 3017764da1
commit f5bc575378
3 changed files with 7 additions and 6 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.vscode .vscode
build build
main.exe

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0.0) cmake_minimum_required(VERSION 3.6)
project(lc VERSION 0.1.0) project(lc VERSION 0.1.0)
include(CTest) include(CTest)

View File

@@ -3,7 +3,7 @@
* @Version: 1.0 * @Version: 1.0
* @Autor: wxchen * @Autor: wxchen
* @Date: 2022-11-21 15:27:10 * @Date: 2022-11-21 15:27:10
* @LastEditTime: 2022-11-21 21:08:42 * @LastEditTime: 2024-07-03 23:15:58
*/ */
#include <iostream> #include <iostream>
#include <vector> #include <vector>
@@ -38,9 +38,9 @@ class Solution {
int main(int, char**) { int main(int, char**) {
// ListNode* head = new ListNode(1); ListNode* head = new ListNode(1);
// head -> next = new ListNode(3); head -> next = new ListNode(3);
// head -> next -> next = new ListNode(2); head -> next -> next = new ListNode(2);
Solution s; Solution s;
std::cout << s.reversePrint(head)[0] << s.reversePrint(head)[1] << s.reversePrint(head)[2] << std::endl; std::cout << s.reversePrint(head)[0] << s.reversePrint(head)[1] << s.reversePrint(head)[2] << std::endl;