From 1657efd6ee99b3d9819aae939f845bd17f669c57 Mon Sep 17 00:00:00 2001 From: chayan das <110921638+Chayandas07@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:43:53 +0530 Subject: [PATCH] Create 11 October Reorganize The Array --- 11 October Reorganize The Array | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 11 October Reorganize The Array diff --git a/11 October Reorganize The Array b/11 October Reorganize The Array new file mode 100644 index 0000000..a199106 --- /dev/null +++ b/11 October Reorganize The Array @@ -0,0 +1,21 @@ +class Solution { + public: + vector rearrange(vector& arr) { + // Code here + unordered_mapmp; + int n = arr.size(); + for(auto num : arr){ + if(num>=0){ + mp[num] = true; + } + } + for(int i = 0; i