leetcode 849. Maximize Distance to Closest Person (python)

NoSuchKey