From d2252431220c7d9e35b027f4daf336b25d4ffdd7 Mon Sep 17 00:00:00 2001 From: Shivam Jaiswal <94839938+Ijaiswalshivam@users.noreply.github.com> Date: Mon, 25 Jul 2022 16:01:57 +0530 Subject: [PATCH] readme.md --- Data Structures/Arrays/2 Sum Problem | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Data Structures/Arrays/2 Sum Problem diff --git a/Data Structures/Arrays/2 Sum Problem b/Data Structures/Arrays/2 Sum Problem new file mode 100644 index 0000000..a129763 --- /dev/null +++ b/Data Structures/Arrays/2 Sum Problem @@ -0,0 +1,20 @@ +#include +#include +using namespace std; +int main(){ + int arr[] = {2,3,4,9,1,0,6,10,23,5,76}; + int n = 11; + int target = 7; + unordered_map seen; + for(int i=0;i