in reply to Better way of writing "find the missing number(s)"
Given an increasing sequence of numbers from 1 to n with only one missing number, how can you find that missing number
The solution to that problem can be found using binary search in O(logN).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Better way of writing "find the missing number" -- oneliner
by Discipulus (Canon) on Apr 04, 2017 at 07:29 UTC | |
by tybalt89 (Monsignor) on Apr 04, 2017 at 07:50 UTC | |
by salva (Canon) on Apr 04, 2017 at 07:50 UTC | |
by tybalt89 (Monsignor) on Apr 04, 2017 at 08:44 UTC | |
|
Re^2: Better way of writing "find the missing number(s)"
by pritesh_ugrankar (Monk) on Apr 04, 2017 at 11:20 UTC |