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_middle_node.cpp | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 other/delete_middle_node.cpp (limited to 'other/delete_middle_node.cpp') diff --git a/other/delete_middle_node.cpp b/other/delete_middle_node.cpp deleted file mode 100644 index 1493046..0000000 --- a/other/delete_middle_node.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - ListNode *deleteMiddle(ListNode *head) { - if (head->next == nullptr) - return nullptr; - auto slow = head, fast = head->next->next; - while (fast != nullptr && fast->next != nullptr) { - fast = fast->next->next; - slow = slow->next; - } - slow->next = slow->next->next; - return head; - } -}; -- cgit v1.2.3