I may be wrong, but for [1,2,4,3,5,4,7,2], are the longest sequences [1,2,3,5,7] and [1,2,4,5,7]? Why leetcode expect 3 sequences?
[1,2,3,4,7] is another solution
Thanks! I need to have a sleep to clear my brain :)
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.