Pergunta de entrevista da empresa Ness Digital Engineering

interviewer started with oops principle Object comparison diff. bte string and stringbuffer http request lifecycle 2 puzzles - did not strike me at time -2 same candles - 1 burns in 1 hr.how will you measure 1 1/2 hr -how will you tell weather a number can be represented in 2 raise to n like 4 can be writeen as 2square.

Respostas da entrevista

Sigiloso

27 de dez. de 2012

I would rather burn the first canlde for 1 hour completely, then I will light up the second candle from both the ends. It should take the second candle to burn completely in 30 mins from both ends.

5

Sigiloso

11 de out. de 2011

Since each candle takes 60 mins to burn, total time taken to burn is 120 mins... But since we need to measure 1 1/2 hr which is 90 mins, it can be divided among the two candles in 45 mins each... so when they start burning simultaneously, each candle has to effectively burn for 45 mins i.e 45/60 = 3/4th... so when 3/4th portion is burnt we can say 90 mins has passed...

1