Free written solution

Heaters (LeetCode 475): Solution and Explanation

Houses and heaters sit on a line. Find the smallest radius, shared by every heater, that warms every house.

Read the intuition, approach, code and complexity →