Binary search using recursion results in correct number but wrong index in Javascript

前端 未结 0 1142
有刺的猬
有刺的猬 2021-02-06 21:23

I am a newbie to algorithm, I tried using recursion in binary search, I do get the result and it is correct, but the index of the result is wrong, I\'ve tried over and over but

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