diff --git a/Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp b/Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp index 67a9ceb3..473e6403 100644 --- a/Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp +++ b/Arrays/Leetcode Easy/Intersection of Two Arrays II.cpp @@ -37,8 +37,8 @@ class Solution { //Approach-2 (Using sorting and 2-Pointers) -//T.C: O(n) -//S.C : O(n) +//T.C: O(nlogn) +//S.C : O(1) class Solution { public: vector intersect(vector& nums1, vector& nums2) {