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/construct_string_binary_tree.cpp | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 other/construct_string_binary_tree.cpp (limited to 'other/construct_string_binary_tree.cpp') diff --git a/other/construct_string_binary_tree.cpp b/other/construct_string_binary_tree.cpp deleted file mode 100644 index a63e3c9..0000000 --- a/other/construct_string_binary_tree.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - string tree2str(TreeNode *root) { - if (!root) - return ""; - string ans = to_string(root->val); - if (root->left || root->right) { - ans.push_back('('); - ans += tree2str(root->left); - ans.push_back(')'); - } - if (root->right) { - ans.push_back('('); - ans += tree2str(root->right); - ans.push_back(')'); - } - return ans; - } -}; -- cgit v1.2.3