comefrom: <doocs>1855.Maximum Distance Between a Pair of Values_1.py
code: def maxDistance( nums1: List[int], nums2: List[int]) -> int:
      ans, n = 0, len(nums2)
      for i, num in enumerate(nums1):
          left, right = i, n - 1
          while left < right:
              mid = (left + right + 1) >> 1
              if nums2[mid] >= num:
                  left = mid
              else:
                  right = mid - 1
          ans = max(ans, left - i)
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : List [ int ] ) -> int :
      var_2 , var_3 = 0 , len ( var_1 )
      for var_4 , var_5 in enumerate ( var_0 ) :
          var_6 , var_7 = var_4 , var_3 - 1
          while var_6 < var_7 :
              var_8 = ( var_6 + var_7 + 1 ) >> 1
              if var_1 [ var_8 ] >= var_5 :
                  var_6 = var_8
              else :
                  var_7 = var_8 - 1
          var_2 = max ( var_2 , var_6 - var_4 )
      return var_2
  