|
|
|
|
|
by pbalau
2501 days ago
|
|
Divide and conquer? I don't have a cs degree, but this was thought in highschool in Romania. If you went to the right kind of high school. Reading the other comments I'm not sure d and c is the answer. Might be terminology, but I would split the array in two at the middle, see if the value I'm om is the one I'm searching for. If not, recursively do the same thing on the left or right side of the array. |
|