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/unique_bst.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 other/unique_bst.cpp (limited to 'other/unique_bst.cpp') diff --git a/other/unique_bst.cpp b/other/unique_bst.cpp deleted file mode 100644 index 7aefacd..0000000 --- a/other/unique_bst.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - int numTrees(int n) { - if (n == 1) - return 1; - vector dp(n + 1); - dp[0] = dp[1] = 1; - for (int i = 2; i <= n; i++) { - for (int j = 0; j < i; j++) { - int k = i - 1 - j; - dp[i] += (dp[j] * dp[k]); - } - } - return dp[n]; - } -}; - -int main() { - Solution obj; - cout << obj.numTrees(3); -} -- cgit v1.2.3