class Solution { int row; int col; int [][]dir={ {0,1},{0,-1},{-1,0},{0,1}};//对应坐标上下左右 Set<String> pacificVisited=new HashSet<>();//左边太平洋去重 Set<String> atlanticVisited=new HashSet<>(); int [][]matrix; int [][]heights; public List<List<...