top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How many lines of codes will he complete writing in 72 minutes?

+1 vote
147 views

A programmer has the capability of thinking 70 lines of code in six minutes and can type 70 lines of code in 12 minutes.
He takes a break for six minutes after every 12 minutes.
How many lines of codes will he complete writing in 72 minutes?
Assume that he always needs to think before writing any code.

posted Mar 11, 2019 by Basabdatta Mukherjee

Share this puzzle
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

175 lines


In 6 min blocks it will look like this:
Think 70 >> Write 35 >> Rest >> Write 35 >> Think 70 >> Rest >> Write 35 >> Write 35 >> Rest >> Think 70 >> Write 35 >> Rest
From above he managed to complete writing of 175 code lines

answer Mar 12, 2019 by Hanifa Mammadov



Similar Puzzles
0 votes

A jeep has wheels of diameter 140 m.
How many revolutions can the wheel complete in 40 minutes, if the jeep is travelling at a speed of 220 m/s?

0 votes

Akshay ate 72 bananas in six days, each day eating 4 more than the previous day.
How many bananas did he eat on the third day?

+1 vote

You have accidentally left out the plug and are attempting to fill the bath with both 2 taps full on. The hot tap takes 6 minutes to fill the bath, the cold tap takes 4 minutes, and the water empties through the plug hole in 12 minutes.

In how many minutes will the bath be filled?

0 votes

B is more efficient than A and they together can complete a work in 18 days.
Had A done 60% of the work and then B, the remaining work, then the work would have been completed in 39 days.
B alone will complete 60% of the same work in how many days?

...