Skip to content

Commit

Permalink
Update pyramid-transition-matrix.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Jan 1, 2018
1 parent b63470a commit 66aaaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Python/pyramid-transition-matrix.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Time: O(b^2 * a^(b*(b+1)/2-1)), a is the size of allowed,
# b is the length of bottom
# Time: O(a^(b*(b+1)/2-1)), a is the size of allowed,
# b is the length of bottom
# Space: O(a + b^2)

# We are stacking blocks to form a pyramid. Each block has a color which is a one letter string, like `'Z'`.
Expand Down

0 comments on commit 66aaaf7

Please sign in to comment.