Collatz Sequence
Airbnb interview questions · Hard · Coding round · 6 tests
Memoize Collatz chain lengths so you can find the maximum step count over every value from 1 through n.
The full question, tests and reference solution are available with a plan that includes Airbnb.
Run your code with Ctrl+Enter to see results.