You are viewing a single comment's thread. Return to all comments →
def flatlandSpaceStations(n, c, m): c.sort() maxi=max(abs(c[0]-0),abs((n-1)-c[-1])) if n<=m: return '0' for i in range(m-1): maxi=max(abs(c[i]-c[i+1])//2,maxi) return maxi
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 →