Pick the longest subsequence of a string in which every two adjacent letters are at most k apart in the alphabet.
Pick the longest subsequence of a string in which every two adjacent letters are at most k apart in the alphabet.
Opens with the full question.