Interview Question

Senior Software Engineer Interview

-Dublin, Dublin

LinkedIn

find a number in a sorted array and then find the number in an unsorted array ?They will unsort the array on their own .

AnswerAdd Tags

Interview Answers

3 Answers

0

I don't get it. Why did they not move forward?

pLasma on

0

I know that is too easy, and probably this thread was closed, but I'm very thankful, if any one could validate the code below about this question. =================== @Test public void test() { String[] sortedArray = {"a","b","c","d","e","1"}; String[] unsortedArray = {"a","2","c","3","1","4"}; int number = 0; for(int i=0;i

jbjares on

0

Oh guys this was so easy I was able to provide six seven ways and provided with complexcity analysis as well , which he was happy with .. but I dont know what was the expectation ...i think I just wasted 2 weeks of my precious job hunting time ...

Anonymous on

Add Answers or Comments

To comment on this, Sign In or Sign Up.