Skip to content

Commit 26c1487

Browse files
authored
Update 1614-maximum-nesting-depth-of-the-parentheses.js
Add spaces after control flow statements.
1 parent 0219e42 commit 26c1487

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/1614-maximum-nesting-depth-of-the-parentheses.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
var maxDepth = function(s) {
99
let currDepth = 0;
1010
let maxDepth = 0;
11-
for(let i = 0; i < s.length; i++) {
12-
if(s[i] === "(") currDepth++;
11+
for (let i = 0; i < s.length; i++) {
12+
if (s[i] === "(") currDepth++;
1313
maxDepth = Math.max(currDepth, maxDepth);
14-
if(s[i] === ")") currDepth--;
14+
if (s[i] === ")") currDepth--;
1515
}
1616
return maxDepth;
1717
};

0 commit comments

Comments
 (0)