Count Staircases with Strictly Increasing Step Heights
Given n unit blocks, count the different staircases that can be formed.
A staircase has one or more steps. Every step has a positive integer height, and heights must strictly increase from left to ri...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
