Technical Interview QuestionDecember 17th, 2009 | Posted by in Technology
Want to be one of Quixey’s earliest employees? We expect to be hiring for a programmer position very soon.
When it comes to engineering our product, we think it’s essential to hire top-notch programmers who know how to architect and maintain a beautiful codebase.
Write a function
findInSorted(arr, x). It’s supposed to return the smallest index of a value
xin an array
arrwhich, as a precondition, must be sorted from least to greatest. Or, if
arrdoesn’t contain an element equal to
x, the function returns
Email your answer to email@example.com.