problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
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 }

引用了 acwing::ListNode::next , 以及 printListReversingly().

被这些函数引用 printListReversingly().


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