3351. Sum of Good Subsequences
3351. Sum of Good Subsequences
Description
You are given an integer array nums
. A good subsequence is defined as a subsequence of nums
where the absolute difference between any two consecutive elements in the subsequence is exactly 1.