Skip to content

Commit

Permalink
Update two-sum.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
GouravRusiya30 authored Apr 26, 2021
1 parent 1745d8f commit 571ef25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions C++/two-sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Solution {
}
};

Above solution is of O(n^2) time complexity
// Above solution is of O(n^2) time complexity

//O(n) time complexity
//O(n) space complexity
Expand All @@ -38,4 +38,4 @@ vector<int> twoSum(vector<int> &numbers, int target)
return finalresult;
}
}
}
}

0 comments on commit 571ef25

Please sign in to comment.