In binary search if all elements are same .In that case the time complexity of Binary search will be O(N)

前端 未结 0 891
傲寒
傲寒 2021-01-27 04:51
 Basically the time complexity of Binary Search is O(log N).
    What if all the elements are same.
    
    In the bottleneck step. 
    Assuming all the v         


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