Maximum sum of any subsequence
Filed under Snapdeal
The question
Given an array of positive and negative numbers, find the maximum sum of any subsequence and return both the sum and the subsequence.
No write-up yet. Related questions below have one.
Related Snapdeal questions
Collected from public candidate posts and coding forums. Updated Nov 2026.