codingame - MEDIUM - Heat Detector

Binary search problem.

First, check location of bomb's room.

Second, set base distance to calculate binary search.

Third, start binary search.

source link

댓글