From a96b65cbfad7f62f3db6b2eab105e4e25c0414c5 Mon Sep 17 00:00:00 2001 From: Jack Sangdahl Date: Fri, 27 Jun 2025 12:23:02 -0600 Subject: chore: remove old cpp and rust solutions --- other/domino_tromino_tiling.rs | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 other/domino_tromino_tiling.rs (limited to 'other/domino_tromino_tiling.rs') diff --git a/other/domino_tromino_tiling.rs b/other/domino_tromino_tiling.rs deleted file mode 100644 index 554f147..0000000 --- a/other/domino_tromino_tiling.rs +++ /dev/null @@ -1,20 +0,0 @@ -struct Solution; - -impl Solution { - pub fn num_tilings(n: i32) -> i32 { - const MOD: i32 = 1_000_000_007; - let (mut x, mut y, mut z) = (-1, 0, 1); - for _ in 1..=n { - let curr = (2 * z % MOD + x) % MOD; - x = y; - y = z; - z = curr; - } - z - } -} - -fn main() { - println!("{}", Solution::num_tilings(3)); // 5 - println!("{}", Solution::num_tilings(1)); // 1 -} -- cgit v1.2.3