Archive for June, 2007

Bothness

June 17, 2007
By SeanJA

Apparently numbers can be both odd and even… If IsNumeric(StreetNumberValue) Then If 2 Mod CType(StreetNumberValue, Integer) = 0 Then OddEven = "E" 'Even Else OddEven = "O" 'Odd End If Else OddEven = "B" 'Both End If As seen here: http://worsethanfailure.com/Articles/Odd-or-Even-or-Both.aspx Share and Enjoy:
Read more »

Posted in Programming, WTF | 3 Comments »

Code Golf – Home On The Range

June 5, 2007
By SeanJA

Home On The Range It’s as simple as “1 2 3 5 6 8″ => “1-3, 5-6, 8.” The Problem It’s difficult to spot what’s missing in a long list of numbers if they are just listed one after the other. You can make it easier by organising the numbers into ranges, and that’s...
Read more »

Posted in Code Golf, Programming | No Comments »