Maximum subsequence sum from a given array which is a perfect square
Given an array arr[], the task is to find the sum of a subsequence that forms a perfect square. If there are multiple subsequences having a sum equal to a perfect square, print the maximum sum.Explanation: Input: arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9} Output: 36 Explanation: Maximum possible sum which