1
# Runtime: 3070 ms (Top 29.46%) | Memory: 37.4 MB (Top 40.00%)4
self, spells: List[int], potions: List[int], success: int6
result = self.function(spells, potions, success)9
def function(self, arr1, arr2, success):11
arr2.sort() # Sorting Enables Us To Do Binary Search16
) # Finding the Value Of Portion With Least Strength So That It Can Be Greater Than Success17
idx = bisect.bisect_left(19
) # Finding The Left Most Index So That The Value Can Be Inserted22
) # Calculating the remaining numbers after finding the suitable index