diff --git a/C++/2sum.cpp b/C++/2sum.cpp new file mode 100644 index 0000000..a72bfe3 --- /dev/null +++ b/C++/2sum.cpp @@ -0,0 +1,16 @@ +class Solution { +public: + vector twoSum(vector& nums, int target) { + map mpp; + int n = nums.size(); + for(int i = 0; i