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.
defcookies(k,A):# Write your code herecount=0A.sort()while(A[0]<k):if(len(A)==1):return-1A.remove(A[0])A.remove(A[1])A.append(A[0]+2*A[1])count+=1A.sort()returncount
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Jesse and Cookies
You are viewing a single comment's thread. Return to all comments →
Can anyone tell what's wrong in this