diff --git a/articles/is-subsequence.md b/articles/is-subsequence.md index 2d725e239..115af2e01 100644 --- a/articles/is-subsequence.md +++ b/articles/is-subsequence.md @@ -472,7 +472,7 @@ public class Solution { ### Time & Space Complexity -- Time complexity: $O(n + m)$ +- Time complexity: $O(m)$ - Space complexity: $O(1)$ > Where $n$ is the length of the string $s$ and $m$ is the length of the string $t$.