What's the best algorithm to find a missing number between two sorted numbers?

后端 未结 0 498
情歌与酒
情歌与酒 2020-12-05 23:04

Okay, so here\'s an example:

We have an array [1, 2, 3, 6, 7, 9, 15]

And we need to find the number that would fit between two numbers if this wer

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