Search Blog

Loading

Like Us

Our Free Services

E-MAIL ALERTS:
SMS ALERTS:

6) Logical puzzle


A software engineer has the capability of thinking 100 lines of code in five
minutes and can type 100 lines of code in 10 minutes. He takes a break for
five minutes after every ten minutes. How many lines of codes will he
complete typing after an hour?



Answer: 250 lines of code


Description:
For 5 five min he thinks, Next five mins he write code then takes a break. So for the first 15 mins he writes 50 lines of code. 

After the 5 min break, he again starts writing code for next five minute. For next five min, he again starts thinking. As it is 10 mins, so now he takes the break.

So in 30 Mins, he has written 100 lines of code.

Now for the next 10 mins, he writes the code. and then he takes a break for 5 mins.

So in 45 Mins, he has written 200 lines of code. 

So now he again starts thinking for 5 mins. and in next five mins he writes 50 lines of code. As it's 10 mins now,so he takes a break now for 5 mins.

That's it. 1 hour is over and he has only written 250 lines of code. 

No comments: