This is a stupid Cody challenge.
You just have to click "Submit" between 7 and 9 AM. ... Greenwich Mean Time (GMT). To see the time in the GMT time : http://wwp.greenwichmeantime.com/
The test suite only checks the current hour .
Solution Stats
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers82
Suggested Problems
-
Sort a list of complex numbers based on far they are from the origin.
5796 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
583 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
103 Solvers
-
1486 Solvers
-
741 Solvers
More from this Author30
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Aurelien, it might be nice if the assert had an error message (eg assert(isequal(y,y_correct),sprintf('%s','Time is ',datestr(now,'hh')))
So, does this only work if you are clicking 'Submit' between 7 and 9 EST?
Nope. Tried at 7:08 AM EST, and got it wrong. What time zone are we dealing with here?
Thanks Richard for the tip. I have now added the assert that you suiggested. In France it seems that you can solve it between 9 and 11 o'clock . I guess that these + 2 hours correspond to the difference with UTC (or GMT) .
That's why I used the NaN on my Prime Time problem that's similar to this one. isequal with NaN will return false. :-)