← ALL NOTES
String

38. Count and Say

There's nothing clever to find here — each term is built purely from the previous one, so you generate forward from "1" to the n-th term. Building one term from another is run-length encoding: walk…

Loading…