« first day (2729 days earlier)      last day (1699 days later) » 

2:21 PM
0
Q: What complexity does this 'how many ways to climb' algorithm have?

PavloI have a solution to the following problem: Given a stairway of $n$ stairs, which you can climb from $1$ to $m$ at the time ($1 \leq m \leq n$), return all the ways you can climb the stairway. E.g. for $n = 3$, $m = 2$, the possible ways to climb are $[2,1], [1,2], [1,1,1]$ // output...

 
 
9 hours later…
11:01 PM
@NicHartley en.wikipedia.org/wiki/De_Bruijn_sequence ? Universal sequence?
 

« first day (2729 days earlier)      last day (1699 days later) »