1. Computing
Michael Morin

Challenge: A Sequence of Integers

By January 29, 2013

Follow me on:

A challenge: Given an integer, write a method that takes an integer and must return an array containing all the integers from 1 to that integer. While this at first sound simple, there are a few things to consider. And those new to Ruby may be surprised at the answers.

Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.