leetcode

849. Maximize Distance to Closest Person

Solution

Time complexity: O(n)

Space complexity: O(1)