Skip to content

Commit 4bb495a

Browse files
William FisetWilliam Fiset
authored andcommitted
Dominoes and Trominoes
1 parent d6f2ab7 commit 4bb495a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
35.3 KB
Binary file not shown.

src/main/java/com/williamfiset/algorithms/dp/examples/domino-and-tromino-tiling/Solution.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,11 @@ static int makeState(boolean row1, boolean row2) {
8585
if (row2) state |= 0b10;
8686
return state;
8787
}
88+
89+
public static void main(String[] args) {
90+
Solution s = new Solution();
91+
for (int n = 1; n <= 10; n++) {
92+
System.out.printf("n = %d, ans = %d\n", n, s.numTilings(n));
93+
}
94+
}
8895
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy