Need help in a question

Revision en1, by 1111__dek, 2025-02-27 05:55:19

Hi everyone,

So this is the problem link: https://leetcode.com/problems/zero-array-transformation-i/description/

In this problem, what if in each query we don't allow empty subset to be picked? I am not sure if there's something greedy about this that I am missing. The original problem allows you to use empty subset as well, what if we add an extraa constraint?

Any ideas?

Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English 1111__dek 2025-02-27 05:55:19 429 Initial revision (published)