Skip to content

Commit 621f150

Browse files
authored
Update README.md
1 parent 71a9628 commit 621f150

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.md

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

308308
```js
309-
function minAddToMakeValid(s: string): number {
309+
/**
310+
* @param {string} s
311+
* @return {number}
312+
*/
313+
var minAddToMakeValid = function (s) {
310314
const l = s.length;
311315
s = s.replace('()', '');
312-
313316
return s.length === l ? l : minAddToMakeValid(s);
314-
}
317+
};
315318
```
316319

317320
<!-- tabs:end -->

0 commit comments

Comments
 (0)