Skip to content

Commit 71a9628

Browse files
authored
Update README_EN.md
1 parent 1c2274b commit 71a9628

File tree

1 file changed

+6
-3
lines changed
  • solution/0900-0999/0921.Minimum Add to Make Parentheses Valid

1 file changed

+6
-3
lines changed

solution/0900-0999/0921.Minimum Add to Make Parentheses Valid/README_EN.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,15 @@ function minAddToMakeValid(s: string): number {
304304
#### JavaScript
305305

306306
```js
307-
function minAddToMakeValid(s: string): number {
307+
/**
308+
* @param {string} s
309+
* @return {number}
310+
*/
311+
var minAddToMakeValid = function (s) {
308312
const l = s.length;
309313
s = s.replace('()', '');
310-
311314
return s.length === l ? l : minAddToMakeValid(s);
312-
}
315+
};
313316
```
314317

315318
<!-- tabs:end -->

0 commit comments

Comments
 (0)