problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing17::Solution类 参考

#include <acwing.h>

静态 Public 成员函数

static vector< int > printListReversingly (ListNode *head)
 

详细描述

在文件 acwing.h1695 行定义.

成员函数说明

◆ printListReversingly()

vector< int > acwing::acwing17::Solution::printListReversingly ( ListNode head)
static

在文件 acwing.cpp5212 行定义.

5212 {
5213 deque<int> deq;
5214 for(const auto *current = head; current != nullptr; current = current->next) {
5215 deq.push_front(current->val);
5216 }
5217 return vector(deq.begin(), deq.end());
5218 }

该类的文档由以下文件生成: