Pulsing sequence generator
Imagine you need to generate a “pulsing” sequence of numbers which continuously repeats, going up and down between the given values, like this: 5-6-7-8-9-10-9-8-7-6-5-6-7…
Such a sequence may serve different purposes, but in any case, we want a universal solution even for this simple problem. The algorithm is simple too…


