(int x)
| 44 | public static HashMap<Long, Integer> edgeColor = new HashMap<>(); |
| 45 | |
| 46 | public static void up(int x) { |
| 47 | maxv[x] = Math.max(Math.max(maxv[ls[x]], maxv[rs[x]]), arr[x]); |
| 48 | } |
| 49 | |
| 50 | public static boolean isroot(int x) { |
| 51 | return ls[fa[x]] != x && rs[fa[x]] != x; |
no test coverage detected