Problem 2099 · Easy

Find Subsequence of Length K With the Largest Sum

Keep a length-k subsequence with maximum sum while preserving original order.

Open the interactive visualisation