Opening your workspace…
Workspace/Coding room
Opening your workspace…
Michael has just asked whether fish get thirsty. The title of the video is about chairs. His editor has marked every question in the transcript with Q and every answer with A. Each answer settles the most recent question still open. The editor saved space by writing runs like 3Q instead of QQQ. How many questions deep does Michael get before he finally answers the one in the title?
"3Q3A"Output3All three questions are open at once.
"2Q1A4Q5A"Output5One question is still open when Michael asks four more.
Apply each run directly to the number of open questions without expanding it.
function solve(notes) { // 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.