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.
defpickingNumbers(a):# Write your code hererecord=[]forelement_originalinsorted(a):l=[]forelement_copyinsorted(a):l.append(element_original-element_copy)record.append(max(l.count(0)+l.count(1),l.count(0)+l.count(-1)))returnmax(record)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Numbers
You are viewing a single comment's thread. Return to all comments →
Python