You are viewing a single comment's thread. Return to all comments →
def stones(n, a, b): # Write your code here x = [ sum(i) for i in combinations_with_replacement([a,b], n -1 )] return sorted(set(x))
Seems like cookies are disabled on this browser, please enable them to open this website
Manasa and Stones
You are viewing a single comment's thread. Return to all comments →