Update Recursive/SubsequenceRecursive.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
This commit is contained in:
Chiranjeev
2021-08-17 09:44:31 +05:30
committed by GitHub
parent 57a52aa6e6
commit eb3c325b53

View File

@ -20,7 +20,7 @@
*/
const subsequence = (str, seq, low) => {
if (low <= str.length && str.length !== '') {
if (low <= str.length && str.length !== 0) {
console.log(seq)
}
for (let i = low; i < str.length; i++) {