Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Count Consecutive Summers solution in Clear category for Count Consecutive Summers by JimmyCarlos
def count_consecutive_summers(N):
waysFound = 0
for L in range(1,N+1):
cur = L
while cur < N: L,cur = L+1,cur+L+1
if cur == N: waysFound += 1
return waysFound
April 17, 2019
Comments: