Staircase no double steps
Your task
You climb a staircase of n steps using moves of 1 or 2 steps. A 2-step move is tiring, so you may never make two 2-step moves in a row, every 2-step must be followed by a 1-step (or be the final move). Return the number of distinct move sequences that end exactly on step n. For n = 0 return 1. For example, n = 4 has 4 sequences: 1111, 112, 121, 211 (22 is forbidden).
Examples
count_paced_climbs(n: int) -> intExample 1
Input
count_paced_climbs(4)Output
4Example 2
Input
count_paced_climbs(5)Output
6