comefrom: <doocs>0165.Compare Version Numbers_1.py
code: def compareVersion( version1: str, version2: str) -> int:
      i, j, m, n = 0, 0, len(version1), len(version2)
      while i < m or j < n:
          a = b = 0
          while i < m and version1[i] != '.':
              a = a * 10 + int(version1[i])
              i += 1
          while j < n and version2[j] != '.':
              b = b * 10 + int(version2[j])
              j += 1
          if a != b:
              return -1 if a < b else 1
          i += 1
          j += 1
      return 0
masked: def sample_funcname ( var_0 : str , var_1 : str ) -> int :
      var_2 , var_3 , var_4 , var_5 = 0 , 0 , len ( var_0 ) , len ( var_1 )
      while var_2 < var_4 or var_3 < var_5 :
          var_7 = var_6 = 0
          while var_2 < var_4 and var_0 [ var_2 ] != '.' :
              var_7 = var_7 * 10 + int ( var_0 [ var_2 ] )
              var_2 += 1
          while var_3 < var_5 and var_1 [ var_3 ] != '.' :
              var_6 = var_6 * 10 + int ( var_1 [ var_3 ] )
              var_3 += 1
          if var_7 != var_6 :
              return - 1 if var_7 < var_6 else 1
          var_2 += 1
          var_3 += 1
      return 0
  