摘要: public static boolean validMountainArray(int[] A) { if (A == null || A.length <= 2) { return false; } // idx表示分水岭 int idx = 0; // 单调递增 while (idx + 1 阅读全文
posted @ 2020-11-03 09:47 枫叶艾辰 阅读(82) 评论(0) 推荐(0)