comefrom: <doocs>1826.Faulty Sensor_1.py
code: def badSensor( sensor1: List[int], sensor2: List[int]) -> int:
      i, n = 0, len(sensor1)
      while i < n - 1:
          if sensor1[i] != sensor2[i]:
              break
          i += 1
      while i < n - 1:
          if sensor1[i + 1] != sensor2[i]:
              return 1
          if sensor1[i] != sensor2[i + 1]:
              return 2
          i += 1
      return -1
masked: def sample_funcname ( var_0 : List [ int ] , var_3 : List [ int ] ) -> int :
      var_5 , var_7 = 0 , len ( var_0 )
      while var_5 < var_7 - 1 :
          if var_0 [ var_5 ] != var_3 [ var_5 ] :
              break
          var_5 += 1
      while var_5 < var_7 - 1 :
          if var_0 [ var_5 + 1 ] != var_3 [ var_5 ] :
              return 1
          if var_0 [ var_5 ] != var_3 [ var_5 + 1 ] :
              return 2
          var_5 += 1
      return - 1
  