#include <leetcode.h>
|
static vector< vector< int > > | construct2DArray (vector< int > &original, int m, int n) |
|
◆ construct2DArray()
vector< vector< int > > leetcode::convert_1d_array_into_2d_array::Solution::construct2DArray |
( |
vector< int > & |
original, |
|
|
int |
m, |
|
|
int |
n |
|
) |
| |
|
static |
在文件 leetcode.cpp 第 284 行定义.
285 if(original.size() !=
static_cast<unsigned long long>(m) *
static_cast<unsigned long long>(n)) {
288 auto ans = vector<vector<int>>();
290 for(
int i = 0; i < m; i++) {
291 auto row = vector<int>();
292 for(
int j = 0; j < n; j++) {
293 row.push_back(original[count++]);
被这些函数引用 leetcode::convert_1d_array_into_2d_array::TEST().
该类的文档由以下文件生成: