#include <leetcode.h>
|
static vector< int > | findBall (vector< vector< int > > &grid) |
|
◆ findBall()
vector< int > leetcode::where_will_the_ball_fall::Solution::findBall |
( |
vector< vector< int > > & |
grid | ) |
|
|
static |
在文件 leetcode.cpp 第 3464 行定义.
3465 const int m = grid.size();
3466 const int n = grid[0].size();
3468 for(
int i = 0; i < n; i++) {
3473 if(current_x == m) {
3477 if(current_x < 0 || current_y < 0 || current_y >= n) {
3483 if(grid[current_x][current_y] == 1) {
3488 }
else if(dir == 1) {
3490 if(grid[current_x][current_y] == 1) {
3497 if(grid[current_x][current_y] == 1) {
3507 }
else if(dir == 1) {
被这些函数引用 leetcode::where_will_the_ball_fall::TEST().
该类的文档由以下文件生成: