You are viewing a single comment's thread. Return to all comments →
Solution in Python 3.0
def flatlandSpaceStations(n, c): c.sort() max_distance = max(c[0], n - 1 - c[-1]) for i in range(1, len(c)): max_distance = max((c[i] - c[i-1]) // 2, max_distance) return max_distance
Seems like cookies are disabled on this browser, please enable them to open this website
Flatland Space Stations
You are viewing a single comment's thread. Return to all comments →
Solution in Python 3.0