[LeetCode] Longest Subsequence Repeated k Times

1 · · April 6, 2022, 7:06 a.m.
2014. Longest Subsequence Repeated k Times You are given a string s of length n, and an integer k. You are tasked to find the longest subsequence repeated k times in string s. A subsequence is a string that can be derived from another string by deleting some or no characters without changing the order of the remaining characters. A subsequence seq is repeated k times in the string s if seq * k is a subsequence of s, where seq * k represents a string constructed by concatenating seq k times. For...