Thanks a lot Paul and Abhishek! =)
On Tue, May 2, 2017 at 2:28 AM, Abhishek Nanda wrote:
> C (0-720) and J(720-1440) is two exchanges, one at time 0 and another at
> time 720. The exchange at time 0 is the same as the exchange at time 1440
> depending on which day you
C (0-720) and J(720-1440) is two exchanges, one at time 0 and another at
time 720. The exchange at time 0 is the same as the exchange at time 1440
depending on which day you count midnight.
What you've listed is sample 4, and the answer is indeed 4 for it.
Sample 3's input is:
1 1
1439 1440
0 1
In sample case 3, J must have the baby for 0 to 1, and C must have the baby
from 1439 to 1440. I think you've misread the input perhaps?
On Tue, 2 May 2017 at 09:16 Paul Smith wrote:
> You do this pattern every day, so if C has the baby from 0 to 719, and
> hands over
You do this pattern every day, so if C has the baby from 0 to 719, and
hands over to J for 720-1439, J has to hand back to C to start the next
day. If you think about it, the number of exchanges must always be even,
otherwise the next day starts with a different parent.
On Tue, 2 May 2017 at
is 0 midnight?
is 1440 midnight?
why if C (0-720) and J(720-1440) is not only ONE exchange?
I didn't understand sample case 3:
2 2
0 1
1439 1440
1438 1439
1 2
time taking care of the baby:
James..: 0-1, 720-1438, 1439-1440
Cameron: 1-720, 1438-1439
I counted 4