Maximum sum such that no 2 elements are adjacent

1 min read

https://practice.geeksforgeeks.org/problems/stickler-theif/0

Find four elements that sum to a given value
Count triplet with sum smaller than a given value