Skip to content

Commit eb3c325

Browse files
Update Recursive/SubsequenceRecursive.js
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
1 parent 57a52aa commit eb3c325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Recursive/SubsequenceRecursive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121

2222
const subsequence = (str, seq, low) => {
23-
if (low <= str.length && str.length !== '') {
23+
if (low <= str.length && str.length !== 0) {
2424
console.log(seq)
2525
}
2626
for (let i = low; i < str.length; i++) {

0 commit comments

Comments
 (0)