October 09, 2016

Генерация пульсирующей последовательности

Иногда нужно сгенерировать "пульсирующую" последовательность целых чисел, которая повторялась бы циклически, поднимаясь-спускаясь в рамках заданных значений, как бы ступеньки: 5-6-7-8-9-10-9-8-7-6-5-6-7...
Назначение такой последовательности может быть разным. Как всегда, нам хочется иметь универсальное решение даже для такой простой задачи. Алгоритм простой...
Протестировать этот алгоритм онлайн можно на IDEone. Исходный код также доступен на GitHub. Кроме того, можно испытать тот же подход на графиках.

4 comments:

  1. All The Interested Candidates Read The Notification of The Following Vacancy. Read and Check Are You Eligible For This Vacancy and Read The How to Apply The Online Form of This Job. Online Quran teacher.

    ReplyDelete
  2. Online Quran Classes for kids to learn the reading, Kids Quran Memorization, Quran lessons for kids and children. Your kids will have one on one attention in .

    ReplyDelete


  3. Some of the most successful ABS-CBN programs from the 1990s up to the present
    bear his imprint — from “Showbiz Lingo”, “The Buzz”, lambingan - Watch your favorite Pinoy Tambayan, Pinoy Teleserye Replay, Pinoy
    TV Series and Pinoy TV Shows online for free! “Today With Kris”, “Game Ka Na Ba?”, “Mula
    Sa Puso”, “ASAP” and recent hits “May Bukas Pa”, “Tayong Dalawa”, “Walang Hanggan” and “Ang Probinsyano”.

    ReplyDelete
  4. gogo anime Watch anime online in English. You can watch free series and movies online and English subtitle.

    Lottery sambad is the Indian lottery system. The important and main thing which attracts the people to invest in this lottery is the number of prizes and size of the lottery. There are many other lotteries in India but sambad is a very popular lottery among the Indian people.

    ReplyDelete