You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1291,7 +1291,7 @@ const songDecoder = song => {
1291
1291
1292
1292
## 40. Valid Parentheses
1293
1293
1294
-
Given a non-empty string `s` containing just the characters `(`, `)`, `{`, `}`, `[` and`]`, determine if the input string is valid. An input string is valid if open brackets are closed by the same type of brackets, and open brackets are closed in the correct order.
1294
+
Given a non-empty string `s` containing just the characters `(`, `)`, `{`, `}`, `[`,`]`, determine if the input string is valid. An input string is valid if open brackets are closed by the same type of brackets, and open brackets are closed in the correct order.
1295
1295
1296
1296
```js
1297
1297
constisValid=s=> {
@@ -1333,3 +1333,37 @@ const isValid = s => {
1333
1333
---
1334
1334
1335
1335
**[⬆ Back to Top](#javascript-coding-challenges-for-beginners)**
1336
+
1337
+
## Reverse Integer
1338
+
1339
+
Given a signed 32-bit integer `x`, return `x` with its digits reversed. If reversing `x` causes the value to go outside the signed 32-bit integer range [-2<sup>31</sup>, 2<sup>31</sup> - 1], then return 0.
0 commit comments