easy python solution nlogn
\nclass Solution(object):\n    def maxChunksToSorted(self, arr):\n        """\n        :type arr: List[int]\n        :rtype: int\n        """\n        if not ar
```\nclass Solution(object):\n    def maxChunksToSorted(self, arr):\n        """\n        :type arr: List[int]\n        :rtype: int\n        """\n        if not arr: return 0\n        n=len(arr)\n        temp=arr[::]\n        temp.sort()\n        chunks=0\n        cum_sum_temp=cum_sum_arr=0\n\n        for i in range(n):\n        \tcum_sum_temp+=temp[i]\n        \tcum_sum_arr+=arr[i]\n        \tif cum_sum_temp==cum_sum_arr:\n        \t\tchunks+=1\n        return chunks\n```
[]