Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAAt first I thought this was simple, but then I spent some time to figure out, why my result did not match the output.
Well I (and others) found out that the Time_Now in the input and output data has an offset of 41 seconds, and that was why my output did not match the provided output. After the correction it did match, and I did after checking the provided solution see, that here it didn't match either.
//Thomas
Here is my solution.
I used the floor function instead of mod and got to the same result. It was also a little easier for e to follow what each set was doing versus the extra mathematical steps you have to apply using MOD.
I guess its more personal preference on my end :)
Great challenge, lots of fun!
just solved the Question
Sam :)