We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defflatlandSpaceStations(n,c):iflen(c)<2:returnmax(c[0],(n-1)-c[0])c.sort()d=max((c[i+1]-c[i])//2 for i in range(len(c)-1))returnmax(d,c[0],(n-1)-c[-1])
Cookie support is required to access HackerRank
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 →
python