comefrom: <garvit244>4_1.py
code: def findMedianSortedArrays( nums1, nums2):
      if len(nums1) > len(nums2):
          nums1, nums2 = nums2, nums1
      
      x, y = len(nums1), len(nums2)
      low , high = 0, x
      
      while  low <= high:
          partitionx = (low+high)/2
          partitiony = (x+y+1)/2 - partitionx
          if partitionx == 0:
              maxLeftX = float('-inf')
          else:
              maxLeftX = nums1[partitionx-1]
      
          if partitionx == x:
              minRightX = float('inf')
          else:
              minRightX = nums1[partitionx]
      
          if partitiony == 0:
              maxLeftY = float('-inf')
          else:
              maxLeftY = nums2[partitiony-1]
      
          if partitiony == y:
              minRightY = float('inf')
          else:
              minRightY = nums2[partitiony]
      
          if maxLeftX <= minRightY and maxLeftY <= minRightX:
              if((x+y)%2 == 0):
                  return (max(maxLeftX, maxLeftY) + min(minRightX, minRightY))/2.0
              else:
                  return max(maxLeftY, maxLeftX)
          elif maxLeftX > minRightY:
              high = partitionx - 1
          else:
              low = partitionx + 1
masked: def sample_funcname ( var_0 , var_1 ) :
      if len ( var_0 ) > len ( var_1 ) :
          var_0 , var_1 = var_1 , var_0
      var_2 , var_3 = len ( var_0 ) , len ( var_1 )
      var_4 , var_5 = 0 , var_2
      while var_4 <= var_5 :
          var_6 = ( var_4 + var_5 ) / 2
          var_7 = ( var_2 + var_3 + 1 ) / 2 - var_6
          if var_6 == 0 :
              var_8 = float ( '-inf' )
          else :
              var_8 = var_0 [ var_6 - 1 ]
          if var_6 == var_2 :
              var_9 = float ( 'inf' )
          else :
              var_9 = var_0 [ var_6 ]
          if var_7 == 0 :
              var_10 = float ( '-inf' )
          else :
              var_10 = var_1 [ var_7 - 1 ]
          if var_7 == var_3 :
              var_11 = float ( 'inf' )
          else :
              var_11 = var_1 [ var_7 ]
          if var_8 <= var_11 and var_10 <= var_9 :
              if ( ( var_2 + var_3 ) % 2 == 0 ) :
                  return ( max ( var_8 , var_10 ) + min ( var_9 , var_11 ) ) / 2.0
              else :
                  return max ( var_10 , var_8 )
          elif var_8 > var_11 :
              var_5 = var_6 - 1
          else :
              var_4 = var_6 + 1
  