Tap here to switch tabs
Problem
Submissions

Problem: Minimum Time For K Virus Variants to Spread

med
30 min
Try to solve the Minimum Time For K Virus Variants to Spread problem.

Statement

There are n distinct virus variants located on a 22D integer grid. You are given a 22D integer array points of size n, where points[i] =[xi,yi]= [x_i, y_i] represents the initial location of the ii-th virus variant at day 00, and an integer k.

Each day, every virus variant spreads by 11 unit in Manhattan distance in all directions. Thus, on day dd, the ii-th virus variant will have spread to all integer coordinate points (x,y)(x, y) satisfying:

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Minimum Time For K Virus Variants to Spread

med
30 min
Try to solve the Minimum Time For K Virus Variants to Spread problem.

Statement

There are n distinct virus variants located on a 22D integer grid. You are given a 22D integer array points of size n, where points[i] =[xi,yi]= [x_i, y_i] represents the initial location of the ii-th virus variant at day 00, and an integer k.

Each day, every virus variant spreads by 11 unit in Manhattan distance in all directions. Thus, on day dd, the ii-th virus variant will have spread to all integer coordinate points (x,y)(x, y) satisfying: