You are given an integer array nums and an array queries, where queries[i] = [l_i, r_i, val_i].
For each query queries[i], you can choose any subset of indices within the range
An array is considered a Zero Array if every element in the array is equal to
Return the minimum integer queries.length) such that after applying the first nums can be transformed into a Zero Array. If it is impossible to transform nums into a Zero Array even after applying all queries, return
Constraints:
nums.length
nums[i]
queries.length
queries[i]
nums.length
You are given an integer array nums and an array queries, where queries[i] = [l_i, r_i, val_i].
For each query queries[i], you can choose any subset of indices within the range
An array is considered a Zero Array if every element in the array is equal to
Return the minimum integer queries.length) such that after applying the first nums can be transformed into a Zero Array. If it is impossible to transform nums into a Zero Array even after applying all queries, return
Constraints:
nums.length
nums[i]
queries.length
queries[i]
nums.length