In Binary Search , which will be the scenario for Best Case performance ?
The middle element is equal to the ‘input key’ O(2).
The middle element is equal to the ‘input key’ O(1).
The middle element is equal to the ‘input key’ O(4).
The middle element is equal to the ‘input key’ O(3).
0 comments:
Post a Comment