Skip to content
Code ReadingStaircase
Bug Hunt

Staircase

How many ways up n stairs, one or two steps at a time? ways(4) should be 5 but returns 0. Find the line and the kind of bug.

Click the line you think is wrong.