Desenvolvedor Interview Questions

102,655 desenvolvedor interview questions shared by candidates

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"
avatar

Software Developer

Interviewed at Amazon

3.5
Nov 24, 2011

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"

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.
avatar

Software Developer

Interviewed at Algoworks

3.8
Feb 22, 2016

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.

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.
avatar

Software Developer

Interviewed at Broadway Technology

4.2
Oct 15, 2012

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

Glassdoor has 102,655 interview questions and reports from Desenvolvedor interviews. Prepare for your interview. Get hired. Love your job.