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

View File

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