Interleave numbers from 1 to n, with the same numbers reversed – codegolf.stackexchange.com

A simple one: Take a positive integer n less than 1000, and output the integers from 1 to n interleaved with the integers from n to 1. You must concatenate the numbers so that they appear without any ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Interleave numbers from 1 to n, with the same numbers reversed – codegolf.stackexchange.com"