Search found 4 matches

by nomen
Tue Jun 23, 2009 3:33 am
Forum: Challenges
Topic: Pollyanna
Replies: 7
Views: 11376

Re: Pollyanna

megabreit wrote:I got one way to execute the code but hardly find another one...
Is the code runnable in 2 ways without modifying it?
Or did I understand anything wrong with the challenge?
It's much less complicated than you think. No need to run anything at all.
by nomen
Mon Jun 01, 2009 12:11 pm
Forum: Challenges
Topic: Your Turn, Part Two
Replies: 48
Views: 49740

No problems here either.
by nomen
Mon May 18, 2009 3:28 am
Forum: Challenges Solved
Topic: lotsa dots
Replies: 26
Views: 2233

In Firefox and SeaMonkey at least, this can be conveniently solved from inside the browser, which I thought was a fun way to do it. var cheight = 600, cwidth = 200, startx = -1, starty = -1, b = 1, cbyte = 0, s = ''; var canvas = document.createElementNS("http://www.w3.org/1999/xhtml", &qu...
by nomen
Fri Mar 06, 2009 12:02 am
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9308

Delphi (no kidding, people use that! no error checking either): function Challenge153(Input: string): Integer; var s: string; p: Integer; begin s := Input; Result := 0; p := 1; while (p <= Length(s)) do begin if s[p] in ['0'..'9'] then begin Inc(Result, Ord(s[p])-48); end else if s[p] = 'x' then beg...