Skip to content

Commit 5622cd0

Browse files
refactor 1
1 parent 8a74f49 commit 5622cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/_1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class Solution {
1818
vector<int> twoSum(vector<int>& nums, int target) {
1919
unordered_map<int, int> m;
2020
vector<int> result;
21-
for(int i=0; i<nums.size(); i++){
21+
for(int i = 0; i < nums.size(); i++){
2222
// not found the second one
23-
if (m.find(nums[i])==m.end() ) {
23+
if (m.find(nums[i]) == m.end() ) {
2424
// store the first one poisition into the second one's key
2525
m[target - nums[i]] = i;
2626
}else {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy