home
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.vscode
|
||||
build
|
||||
build
|
||||
main.exe
|
||||
|
||||
@@ -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)
|
||||
|
||||
8
main.cpp
8
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 <iostream>
|
||||
#include <vector>
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user