Skip to main content
shortened it
Source Link
bsd
  • 141
  • 3

Ruby - 47 chars

(1..4).to_a.push((1..5).to_a.reverse).join ' '

Edit - 33 chars

[*(1..4),[*(1..5)].reverse]*' '

Ruby - 47 chars

(1..4).to_a.push((1..5).to_a.reverse).join ' '

Ruby - 47 chars

(1..4).to_a.push((1..5).to_a.reverse).join ' '

Edit - 33 chars

[*(1..4),[*(1..5)].reverse]*' '
Source Link
bsd
  • 141
  • 3

Ruby - 47 chars

(1..4).to_a.push((1..5).to_a.reverse).join ' '