Longest subsequence such that difference between adjacent is one

1 min read

https://practice.geeksforgeeks.org/problems/longest-subsequence-such-that-difference-between-adjacents-is-one4724/1

Count all subsequences having product less than K
Maximum subsequence sum such that no three are consecutive