Find the length of the longest subsequence that appears at least twice in the given string, where the two occurrences have different indices.
{ "s": "AABEBCDD" }
3
{ "s": "aab" }
1
{ "s": "axxxy" }
2
Sign in to Run Code and Submit