You are viewing a single comment's thread. Return to all comments →
Python3
def stones(n, a, b): # Write your code here res=[] for i in range(n): res.append((i)*b+(n-i-1)*a) return sorted(set(res))
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 →
Python3