Given an array arr of size N, and two integers A and B. The task is to find the length of the longest subsequence with… Read More
The post Longest Subsequence such that difference between adjacent elements is either A or B appeared first on GeeksforGeeks.