Python, faster than 100.00%
\tdef threeEqualParts(self, arr: List[int]) -> List[int]:\n        ones = arr.count(1)\n        if ones == 0: return [0, 2]\n        if ones % 3: return [-1, -1
\tdef threeEqualParts(self, arr: List[int]) -> List[int]:\n        ones = arr.count(1)\n        if ones == 0: return [0, 2]\n        if ones % 3: return [-1, -1]\n        ones_in_number = ones//3\n        \n        ones = 0\n        start0 = i = arr.index(1)\n        while(ones < ones_in_number):\n            if arr[i]:\n                ones+=1\n            i+=1\n            \n        l = i-start0\n        start1 = arr.index(1, start0+l)\n        start2 = arr.index(1, start1+l)\n\n        l += len(arr)-(start2+l)\n        \n        if arr[start0:start0+l] == arr[start1:start1+l] == arr[start2:start2+l]:\n            return [start0+l-1, start1+l]\n        else:\n            return [-1, -1]
['Python']