LC769. Max Chunks to make sorted Author: LEI XIA Date: 二月 26, 2020 17:06 key: mx == i. 12345678public int maxChunksToSorted(int[] arr) { int res = 0, mx = 0; for (int i = 0; i < arr.length; ++i) { mx = Math.max(mx, arr[i]); if (mx == i) ++res; } return res;} Tag(s): # jump game back · home LC768. Max Chunks to make sorted II LC470. Implement Random10() using Rand7()