实现public static boolean isSorted(int[] table)
判断整数数组元素是否已经按升序排序。
一列数,需要判断的数组元素。
如果已经排序输出YES
如果没有排序输出NO
1 2 3 4 5 6
YES