There is an n and an array artifacts where artifacts[i]
You are also given an array dig where each dig[i]
An artifact is successfully extracted if all of the cells it occupies have been excavated.
Return the total number of artifacts that can be extracted.
Constraints:
n
artifacts.length, dig.length
artifacts[i].length
dig[i].length
No two artifacts will overlap.
The number of cells covered by an artifact is at most
The entries of dig are unique.
There is an n and an array artifacts where artifacts[i]
You are also given an array dig where each dig[i]
An artifact is successfully extracted if all of the cells it occupies have been excavated.
Return the total number of artifacts that can be extracted.
Constraints:
n
artifacts.length, dig.length
artifacts[i].length
dig[i].length
No two artifacts will overlap.
The number of cells covered by an artifact is at most
The entries of dig are unique.