Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
1-liner solution in Creative category for Evenly Spaced Trees by Phil15
evenly_spaced_trees=lambda T,i=__import__:(T[-1]-T[0])//i('f'
'unctools').reduce(i('math').gcd,(t-T[0]for t in T))+1-len(T)
April 3, 2019
Comments: