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/delete_col_sorted.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 other/delete_col_sorted.cpp (limited to 'other/delete_col_sorted.cpp') diff --git a/other/delete_col_sorted.cpp b/other/delete_col_sorted.cpp deleted file mode 100644 index 4954032..0000000 --- a/other/delete_col_sorted.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - int minDeletionSize(vector &strs) { - int ans = 0; - if (strs.empty()) - return ans; - for (auto i = 0; i < strs[0].size(); ++i) - for (auto j = 1; j < strs.size(); ++j) - if (strs[j - 1][i] > strs[j][i]) { - ++ans; - break; - } - return ans; - } -}; - -int main() { - Solution obj; - vector strs1 = {"cba", "daf", "ghi"}, strs2 = {"a", "b"}, - strs3 = {"zyx", "wvu", "tsr"}; - cout << obj.minDeletionSize(strs1) << endl; - cout << obj.minDeletionSize(strs2) << endl; - cout << obj.minDeletionSize(strs3) << endl; -} -- cgit v1.2.3