A person starts at floor 0 and wants to reach floor n. Each move goes up 1 or 2 floors (any number of times) or 3 floors (at most k times in total). Count the distinct sequences of moves that reach…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.