We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95401de commit cda02c0Copy full SHA for cda02c0
902-numbers-at-most-n-given-digit-set.js
@@ -25,7 +25,7 @@ const atMostNGivenDigitSet = function(digits, n) {
25
res += pow(base, len - 1 - pos)
26
} else if(str[pos] === ch) {
27
dfs(pos + 1)
28
- }
+ } else break
29
}
30
31
};
0 commit comments