code: def maxDepthAfterSplit(self, seq: str) -> List[int]:
      answer = []
      depth = 0
  
      for c in seq:
          if c == "(":
              depth += 1
              answer.append(depth % 2)
          else:
              answer.append(depth % 2)
              depth -= 1
  
      return answer
  
label_desc: Use image node_id 1 for calling the Solution obj's underlying member method code with example usage: obj.maxDepthAfterSplit(seq) and returns: answer