Opening your workspace…
Workspace/Coding room
Opening your workspace…
The White Rabbit checks his pocket watch to see how late he is. Given the scheduled time and the time shown on the watch, return how many minutes late he is. If the watch shows the scheduled time or an earlier time, return 0.
"12:00", "12:07"Output7The watch is seven minutes past the scheduled time.
"09:30", "09:30"Output0He is exactly on time.
Convert both clock readings to minutes from midnight.
function solve(scheduled, watch) { // Write your solution here. }
Tab inserts two spaces. Shift+Tab outdents. Use the arrow keys and Tab to choose a suggestion. Press Escape, then Tab, to leave the editor. Press Control or Command with apostrophe to run samples or with Enter to submit.