Ruby selection sort.

The general idea behind selection sort is, finding the least element in an array and exchanging it with the item in the first position of that given array.  Two loops are used. The outer one  shows where we are in the array and the second finds the smallest element between the current array item and [...]

Posted at 9am on 3/24/08 | 1 comment | Filed Under: Programming | Tagged: , , | read on

challenge #6 display a chess board

I do not know but i know dear reader that you have seen a programming problem like this one ;
***        ***
***
***        ***
The program displays something in the form of a chess board where the * are the black boxes and the spaces are the white boxes.
To solve this using Ruby, we need [...]

Posted at 5pm on 3/20/08 | no comments; | Filed Under: challenges | Tagged: , , , | read on

About

So you want to know a little about me ? Then, your comments,views,opinions,questions and suggestions are welcomed via brainychip at gmail dot com or this blog.

Categories