Anyone have any idea ?

Revision en1, by Enumeration, 2026-06-12 20:52:52

Hello, I just came to this problem statement and seems interesting as well as hard. anyone can give any ideas about how to solve it..? there was no constraints. what is min TC we can achieve ?

Given an array A.

You may repeatedly choose any subarray whose sum is exactly K and delete it.

The remaining parts join together.

Find the maximum number of deletions possible.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Enumeration 2026-06-12 20:52:52 404 Initial revision (published)