<awangdev>694. Number of Distinct Islands_1.java
private boolean validateInput(int[][] grid, int x, int y) {

        return x < 0 || x >= grid.length || y < 0 || y >= grid[0].length || grid[x][y] == 0;
    }
private boolean var_0 ( int [ ] [ ] var_1 , int var_2 , int var_3 ) {
  return var_2 < 0 || var_2 >= var_1 . length || var_3 < 0 || var_3 >= var_1 [ 0 ] . length || var_1 [ var_2 ] [ var_3 ] == 0 ;
}
