mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
Update Recursive/SubsequenceRecursive.js
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
This commit is contained in:
@ -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++) {
|
||||
|
Reference in New Issue
Block a user