Skip to content

Commit c1c7f53

Browse files
authored
Update 1597-build-binary-expression-tree-from-infix-expression.js
1 parent 8fd1365 commit c1c7f53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

1597-build-binary-expression-tree-from-infix-expression.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const expTree = function (s) {
1616
let i = 0
1717
const number = () => {
1818
let num = ''
19-
while (i < n && '0' <= s[i] && s[i] <= s[i]) {
19+
while (i < n && '0' <= s[i]) {
2020
num += s[i++]
2121
}
2222
return new Node(Number(num))
@@ -55,6 +55,7 @@ const expTree = function (s) {
5555
return expression()
5656
}
5757

58+
5859
// another
5960

6061
/**

0 commit comments

Comments
 (0)