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/stack_using_queues.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 other/stack_using_queues.cpp (limited to 'other/stack_using_queues.cpp') diff --git a/other/stack_using_queues.cpp b/other/stack_using_queues.cpp deleted file mode 100644 index 61e2c88..0000000 --- a/other/stack_using_queues.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "leetcode.h" - -class MyStack { -public: - queue q; - MyStack() {} - void push(int x) { - int n = q.size(); - q.push(x); - while (n--) { - q.push(q.front()); - q.pop(); - } - } - int pop() { - int ans = top(); - q.pop(); - return ans; - } - int top() { return q.front(); } - bool empty() { return q.empty(); } -}; - -int main() {} -- cgit v1.2.3