One of the test case for the code is:
In this case the expected output is 2.
Can someone explain why it is 2. From what i understand isn't the longest uncommon subsequence "abc"(length 3) since is is not common with any of the string.
@agnithin Because abc is a substring of aabbcc.
abc is a substring of aabbcc
abc is not a substring of aabbcc
@agnithin Well, I mean "subsequence", you can delete some letters from "aabbcc" to get "abc", so "abc" is the subsequence of "aabbcc".
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.