Given a mutable string (array of characters) of words, how would you reverse the order of the words in the string, not the entire string. This must be done in place, i.e. not using any additional memory. eg) "Hello World" => "olleH dlroW"
Desenvolvedor Interview Questions
102,655 desenvolvedor interview questions shared by candidates
2 stacks are given, one is full of numbers and other in empty, one integer variable is given, fill the 2nd stack with numbers in ascending order with space and time constraints.
3) Given a N*N array where N is even such as 4, 8 and so on . Print the array from the center. a= [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16] the output should be [6 10 12 7 3 2 1 5 9 13 14 15 16 12 8 4 ] .
second round puzzle(google one) :Four people need to cross a rickety bridge at night. Unfortunately, they have only one torch and the bridge is too dangerous to cross without one. The bridge is only strong enough to support two people at a time. Not all people take the same time to cross the bridge. Times for each person: 1 min, 2 mins, 7 mins and 10 mins. What is the shortest time needed for all four of them to cross the bridge? instead of 7 mins,interviewer said it to be 5 mins :( and expected right answer from me.
Are u ready for 2 years bond?
how to sort 2 different arrays,and save the result in the second array, if the first contains n elements, and the second contains m elements, and the second is alocated a length of m+n.
2. Algorithm question (given two lists of arrays, check whether the first string can be generated by characters in the second string)
They asked me to show how I could loop over the words in a sentence backwards.
they are not ask any technical questions just want to know about your family background..
you are given an unsorted array of integers which are showing the price of a stock during the time. you wanna buy some amount of the stocks at some point, and sell them at a later time, so that to maximize your revenue. Asked for O(n) algorithm.
Viewing 431 - 440 interview questions