The count-and-say sequence starts at "1". Each following term reads the previous one out loud: run lengths followed by the digit.
"1"
Given n, return the n-th term.
n
n = 1
n = 4
"1211"
Why
1 → 11 → 21 → 1211
1 <= n <= 30
Topics
Implement countAndSay in the editor and return the answer — printing it is never graded.
countAndSay
Problem 100 of 1146 in the arena