
Just after midnight on January 1, 2022, Microsoft Exchange servers around the world stopped delivering mail. The antimalware scanner tagged each update with a date and time, like 2201010001, and stored it in a signed 32-bit integer. That value is about 2.2 billion, past the 2.147 billion ceiling of a signed 32-bit int, so it overflowed and the scanner refused to load, quietly freezing every message stuck behind it. Build the version and tell whether the mail still flows.
Objective
Build the YYMMDDHHMM version from its parts and return whether it fits in a signed 32-bit integer.
Steps
$ mail_flows(21, 12, 31, 0, 0)
1
$ mail_flows(22, 1, 1, 0, 1)
0
$ mail_flows(21, 1, 1, 0, 0)
1
Expected files
Allowed functions
None. Write every helper yourself.
Loading solutions...