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.
defcountApplesAndOranges(s,t,a,b,apples,oranges):# Write your code hered_apples=[]d_orange=[]count_apple=0count_orange=0forxinapples:x+=ad_apples.append(x)forjinoranges:j+=bd_orange.append(j)forxind_apples:ifx>=sandx<=t:count_apple+=1forjind_orange:ifj>=sandj<=t:count_orange+=1print(count_apple)print(count_orange)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
PYTHON