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/permutations.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 other/permutations.cpp (limited to 'other/permutations.cpp') diff --git a/other/permutations.cpp b/other/permutations.cpp deleted file mode 100644 index 2e86fc0..0000000 --- a/other/permutations.cpp +++ /dev/null @@ -1,26 +0,0 @@ -#include "leetcode.h" - -class Solution { -public: - vector> permute(vector &nums) { - vector> ans; - int idx = 0; - helper(nums, ans, idx); - return ans; - } - -private: - void helper(vector &nums, vector> &ans, int idx) { - if (idx >= nums.size()) { - ans.push_back(nums); - return; - } - for (int i = idx; i < nums.size(); i++) { - swap(nums[idx], nums[i]); - helper(nums, ans, idx + 1); - swap(nums[idx], nums[i]); - } - } -}; - -int main() {} -- cgit v1.2.3