r/programmingrequests • u/bunchawords5027 • Sep 20 '15
Request for a difference-in-number calculator
Something that will calculate the difference between numbers in a sequence and make a new string of numbers out of them. For example, the sequence (1 , 4 , 8 , 3 , 12) would find the differences between each number and output (3 , 4 , 5 , 9).
3
Upvotes
1
u/green-is-my-friend Sep 08 '22
It's been a while but while I am going through problems I can solve I created this Javascript Sequence Calculator