You are viewing a single comment's thread. Return to all comments →
Python
def hackerlandRadioTransmitters(x, k): x.sort() count = 0 while x: leftHouse = x[0] while x and leftHouse+k >= x[0]: transmitter=x.pop(0) while x and transmitter+k >= x[0]: x.pop(0) count += 1 return count
Seems like cookies are disabled on this browser, please enable them to open this website
Hackerland Radio Transmitters
You are viewing a single comment's thread. Return to all comments →
Python