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/determine_string_halves.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 other/determine_string_halves.cpp (limited to 'other/determine_string_halves.cpp') diff --git a/other/determine_string_halves.cpp b/other/determine_string_halves.cpp deleted file mode 100644 index fd249e1..0000000 --- a/other/determine_string_halves.cpp +++ /dev/null @@ -1,25 +0,0 @@ -#include "leetcode.h" - -class Solution { - string vowels = "aeiouAEIOU"; - -public: - bool halvesAreAlike(string s) { - int mid = s.size() / 2, ans = 0; - for (int i = 0, j = mid; i < mid; i++, j++) { - if (~vowels.find(s[i])) - ans++; - if (~vowels.find(s[j])) - ans--; - } - return ans == 0; - } -}; - -int main() { - Solution obj; - if (obj.halvesAreAlike("book")) - cout << "true"; - else - cout << "false"; -} -- cgit v1.2.3