Given a string S consisting of lowercase letters. Find the longest subsequence of S such that the difference between the maximum and minimum occurring characters… Read More
The post Longest Subsequence with difference between characters equals to K appeared first on GeeksforGeeks.