
v0.39: Grademe is back in your terminal.
Try the CLI betaMerge two already sorted alarm streams into one sorted stream, deterministically.
August 14, 2003. A control room in Ohio runs alarm software with a hidden race condition. Two processes reach for the same alarm queue at once, the alarm system stalls, and the operators stop seeing warnings just as power lines start to fail. Nobody reacts in time, and the cascade takes down the grid for 55 million people across the northeast US and Ontario, some of them for two days. The fix the racy code could never manage: merge the event streams in order, the same way every time. Do that.
merge_alarms(out, {1,3,5}, 3, {2,4}, 2)Expected result
1 2 3 4 5For your own tracking. Tests grade your code.
merge_alarms(out, {2,2}, 2, {2}, 1)Expected result
2 2 2Expected files
merge.cAllowed functions
None. Write every helper yourself.
