Skip to content

Commit 4bb495a

Browse files
William FisetWilliam Fiset
William Fiset
authored and
William Fiset
committed
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)