idx_left = bisect_left(_lists[pos_left], val) pos_right =bisect_right(_maxes, val)ifpos_right == len(_maxes):returnself._len - self._loc(pos_left, idx_left) idx_right =bisect_right(_lists[pos_right], val)ifpos_left == pos_right:returnidx_right - idx_left right = self._...