You are viewing a single comment's thread. Return to all comments →
one line python ;
def countApplesAndOranges(s, t, a, b, apples, oranges): print(len([i for i in apples if (i + a) <= t and (i + a) >= s]),len([i for i in oranges if (i + b) <= t and (i+b) >= s]), sep = '\n')
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
one line python ;