sbool doublesAreSorted(double[] l) { int n = l(l); for (int i = 0; i < n-1; i++) if (l[i] > l[i+1]) false; true; }