1956. Minimum Time For K Virus Variants to Spread
Last updated
Last updated
**Input:** points = [[1,1],[6,1]], k = 2
**Output:** 3
**Explanation:** On day 3, points (3,1) and (4,1) will contain both virus variants.**Input:** points = [[3,3],[1,2],[9,2]], k = 2
**Output:** 2
**Explanation:** On day 2, points (1,3), (2,3), (2,2), and (3,2) will contain the first two viruses.**Input:** points = [[3,3],[1,2],[9,2]], k = 3
**Output:** 4
**Explanation:** On day 4, the point (5,2) will contain all 3 viruses.