Deprecated Garbage Collections – Kenny Lee Chee Wei

A truckload of garbage by Kenny Lee Chee Wei

Archive for June 2007

Palindrome

leave a comment »

While going through a Ruby tutorial website, i came across the term “Palindrome” http://en.wikipedia.org/wiki/Palindrome

“A palindrome is a word, phrase, number or other sequence of units that has the property of reading the same in either direction”

Eg: “Hannah”,  “Damn, I, Agassi, miss again! Mad!” (http://www.palindromelist.com/)

Check out the longest Palindrome ever (http://norvig.com/pal2txt.html )

Advertisements

Written by kennii

June 4, 2007 at 7:38 am

Posted in Cool Discoveries

First Ruby Play-around

leave a comment »

String:

“Kenny”.chop.chop => “Ken”

“Kenny”.chop.chop.chop => “Ke”

Written by kennii

June 4, 2007 at 7:24 am

Posted in Ruby, Software Dev