Update distinct subsequence