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/tallest_billboard.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 other/tallest_billboard.cpp (limited to 'other/tallest_billboard.cpp') diff --git a/other/tallest_billboard.cpp b/other/tallest_billboard.cpp deleted file mode 100644 index 1201823..0000000 --- a/other/tallest_billboard.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - int tallestBillboard(vector &rods) { - unordered_map dp; - dp[0] = 0; - for (int i : rods) { - unordered_map tmp; - for (auto &it : dp) { - int diff = it.first; - tmp[diff + i] = max(tmp[diff + i], dp[diff] + i); - tmp[diff - i] = max(tmp[diff - i], dp[diff]); - } - dp.clear(); - dp.insert(tmp.begin(), tmp.end()); - } - return dp[0]; - } -}; - -int main() { - Solution obj; - vector rods = {1, 2, 3, 6}; - cout << obj.tallestBillboard(rods); -} -- cgit v1.2.3