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.