From 08e26caf5b4978b3cb8484d3ddef4f9ea5da9f1e Mon Sep 17 00:00:00 2001 From: murtazattari <47269452+murtazattari@users.noreply.github.com> Date: Wed, 29 Apr 2020 20:19:50 +0530 Subject: [PATCH 1/3] Create 17EGICS068 hash maps 2.cpp --- 17EGICS068 hash maps 2.cpp | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 17EGICS068 hash maps 2.cpp diff --git a/17EGICS068 hash maps 2.cpp b/17EGICS068 hash maps 2.cpp new file mode 100644 index 0000000..cb495fa --- /dev/null +++ b/17EGICS068 hash maps 2.cpp @@ -0,0 +1,56 @@ +#include +#include +#include +#include +using namespace std; + +int main() +{ + int tar,i,j,key,c=0; //used int variables + cout<<"enter size of the array required "; + cin>>i; //taking size of the array + int *p = new int[i]; //dynamically allocating the array + cout<<"enter the array \n"; + for(j=0;j>p[j]; + } + cout<<"enter the targate value "; + cin>>tar; + set set1; //transferring the array to a set for unique elements + set:: iterator itr; //iterator for keeping track of the set1 used + for(j=0;j Date: Wed, 29 Apr 2020 21:07:00 +0530 Subject: [PATCH 2/3] Update 17EGICS068 hash maps 2.cpp --- 17EGICS068 hash maps 2.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/17EGICS068 hash maps 2.cpp b/17EGICS068 hash maps 2.cpp index cb495fa..ecc03bc 100644 --- a/17EGICS068 hash maps 2.cpp +++ b/17EGICS068 hash maps 2.cpp @@ -3,7 +3,6 @@ #include #include using namespace std; - int main() { int tar,i,j,key,c=0; //used int variables @@ -32,25 +31,6 @@ int main() c++; } } - cout<<"\n elements found are "; - cout< Date: Wed, 29 Apr 2020 21:08:17 +0530 Subject: [PATCH 3/3] Delete 17EGICS068 hash maps 2.cpp --- 17EGICS068 hash maps 2.cpp | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 17EGICS068 hash maps 2.cpp diff --git a/17EGICS068 hash maps 2.cpp b/17EGICS068 hash maps 2.cpp deleted file mode 100644 index ecc03bc..0000000 --- a/17EGICS068 hash maps 2.cpp +++ /dev/null @@ -1,36 +0,0 @@ -#include -#include -#include -#include -using namespace std; -int main() -{ - int tar,i,j,key,c=0; //used int variables - cout<<"enter size of the array required "; - cin>>i; //taking size of the array - int *p = new int[i]; //dynamically allocating the array - cout<<"enter the array \n"; - for(j=0;j>p[j]; - } - cout<<"enter the targate value "; - cin>>tar; - set set1; //transferring the array to a set for unique elements - set:: iterator itr; //iterator for keeping track of the set1 used - for(j=0;j