Number of steps for Binary Search algorithm in the worst-case scenario

前端 未结 0 578
情书的邮戳
情书的邮戳 2020-12-11 08:43

I have this Python definition for the Binary Search:

def binarySearch(target, last):
   lyst.sort()
   left = 0
   right = len(last) - 1
   while left <= r         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题