FAL 第12期量化風(fēng)控 全面策略提高班
private boolean checkRange(int[][] matrix, int x, int y) {
? ? ? ?return x >= 0 && x < matrix.length && y >= 0 && y < matrix[0].length;
? ?}
? ?class Point {
? ? ? ?int x;
? ? ? ?int y;
? ? ? ?public Point(int x, int y) {
? ? ? ? ? ?this.x = x;
? ? ? ? ? ?this.y = y;
? ? ? ?}
? ?}
標(biāo)簽: