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.
defhackerlandRadioTransmitters(x,k):# Write your code herei=0x.sort()ans=0whilei<len(x):ans+=1j=x[i]+kwhilei<len(x)andx[i]<=j:i+=1j=x[i-1]+kwhilei<len(x)andx[i]<=j:i+=1returnans
Cookie support is required to access HackerRank
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 →