79392823

Date: 2025-01-28 05:40:38
Score: 2
Natty:
Report link

It seems like you are using binary search where you traverse array from start to the end. In binary search the best , worst and average time complexities are: Best : O(1) , you get your element in the first indext Average and worst : O(logn) , The target element is at the first or last index of the array.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ammar Ahmed Ansari