Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UniqueClimbs ¶
UniqueClimbs calculates the number of possible ways to climb the steps. Assumes that we have the given number of possible strides. A stride is the number of steps possible. Runs in exponential time.
func UniqueClimbsDS ¶
UniqueClimbsDS doesn't use recursion and instead iterates using memoization of subproblem results. Time complexity is O(K*N) where K is the number of possible strides and N is the number of steps.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.