@StefanPochmann can anyone help explain the two lines:t = iter(t) return all(c in t for c in s)
awice's solution in the original post is straight forward. I googled but still don't get the syntax here. Thanks in advance!
Longest Uncommon Subsequence II
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.