Opening your workspace…
Workspace/Coding room
Opening your workspace…
Perrin reads raffle tickets aloud. Two identical digits side by side make his beak stick, and then somebody has to fetch the butter. Given the inclusive bounds low and high, count the tickets he can read without incident. Use ordinary decimal spelling. Ticket zero is read as a single zero. Practice rank · 3 kyu (Brewery estimate).
98, 102OUTPUT3Perrin manages 98, 101 and 102. Both 99 and 100 need butter.
0, 0OUTPUT1He says zero and folds his ticket.
Count readable tickets up to a bound by building one digit at a time. A leading padding zero has a different job from a spoken zero.
function solve(low, high) { // 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.
98, 1023