Search found 2 matches

by iliis
Thu Dec 10, 2009 11:17 pm
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 8891

haskell is imho quite nice too: calcValue x = calcValue' ("00"++x) where calcValue' (a:b:x:xs) = if x == 'x' then (calcValue' (a:b:xs))+read([a])+read([b]) else (calcValue' (b:x:xs))+read([x]) calcValue' _ = 0 I'm quite new to haskell, so this solution is probably far from perfect... ;) (o...
by iliis
Mon Oct 27, 2008 12:45 am
Forum: Challenges
Topic: Imagine all the silicon
Replies: 13
Views: 22277

yap, with a somewhat acutal os it isnt a challenge at all :(