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.rs | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 other/delete_col_sorted.rs (limited to 'other/delete_col_sorted.rs') diff --git a/other/delete_col_sorted.rs b/other/delete_col_sorted.rs deleted file mode 100644 index 1b7d24a..0000000 --- a/other/delete_col_sorted.rs +++ /dev/null @@ -1,25 +0,0 @@ -struct Solution; - -impl Solution { - pub fn min_deletion_size(strs: Vec) -> i32 { - let mut ans = 0; - let mut new_strs: Vec> = Vec::new(); - for i in 0..strs.len() { - new_strs.push(strs[i].chars().collect::>()); - } - for i in 0..new_strs[0].len() { - for j in 1..new_strs.len() { - if new_strs[j - 1][i] > new_strs[j][i] { - ans += 1; - break - } - } - } - ans - } -} - -fn main() { - let strs = vec![String::from("cba"), String::from("daf"), String::from("ghi")]; - print!("{}", Solution::min_deletion_size(strs)); -} -- cgit v1.2.3