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/orderly_queue.cpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 other/orderly_queue.cpp (limited to 'other/orderly_queue.cpp') diff --git a/other/orderly_queue.cpp b/other/orderly_queue.cpp deleted file mode 100644 index 23053d2..0000000 --- a/other/orderly_queue.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - string orderlyQueue(string s, int k) { - if (k > 1) { - sort(s.begin(), s.end()); - return s; - } - string ans = s; - for (int i = 1; i < s.size(); i++) - ans = min(ans, s.substr(i) + s.substr(0, i)); - return ans; - } -}; - -int main() { - Solution obj; - cout << obj.orderlyQueue("cba", 1); -} -- cgit v1.2.3