1. Computing

Discuss in my forum

Michael Morin

Challenge: A Sequence of Integers

By , About.com GuideJanuary 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>
Top Related Searches integers gp

©2013 About.com. All rights reserved.