Skip to content
Advertisement

AlgoExpert: Validate Subsequence, not passing all test cases

AlgoExpert Question Prompt

Question: Validate Subsequence on AlgoExpert. Given two non-empty arrays of integers write a function that determines whether the second array is a subsequence of the first one.

My code is not passing all test cases, what am I doing wrong?

JavaScript

Advertisement

Answer

Thanks for everyone’s help! Updated Solution:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement