Opening your workspace…
Workspace/Coding room
Opening your workspace…
A wren carries the morning notice rolled inside a teacup. Today she has brought an espresso cup. She'll take just the shortest word on the notice and let the village draw its own conclusions. Given notice, return its shortest word exactly as printed. When words tie, she takes the first one she reaches, reading left to right.
"Bring two hot buns"OUTPUT"two"Both two and hot fit. The wren reaches two first.
"Jam tomorrow at Dawn"OUTPUT"at"Two letters leave room for a biscuit crumb.
Keep the word already in the cup when the next one is the same length.
/** @param {string} notice * @returns {string} */ function solve(notice) { // Write your answer 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.
"Bring two hot buns""two"