79495315

Date: 2025-03-09 02:31:05
Score: 1
Natty:
Report link
def binarysearch(a,n,index):
  mid=int(len(a)/2)
  if(n==a[mid]):
    return (mid+index+1)
  elif(n>a[mid]):
    index=index+mid
    return binarysearch(a[(mid+1):],n,index)
  elif(n<a[mid]):
    return binarysearch(a[0:mid],n,index)

This worked well

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: maths and chess