News for hackers. Stuff that matters.
Re:The ReadyForZero Programming Challenge by amalcon on Tuesday June 14, 2011 @06:38PM (#2655100)
It's possible if RAM isn't a constraint, using a bitset of all possible five-letter strings. The bitset would take up 4G of RAM (128G for extended ASCII, more for unicode).

In practice, that would actually be slower on this input, because of the cost of initializing the bitset. But that is not dependent on the input, so computational complexity is unaffected.

edit: Removed description. Yes, you're right, you can't even look at the whole input in constant time.

Re:The ReadyForZero Programming Challenge by drdo on Tuesday June 14, 2011 @07:21PM (#2655257)
This is a misunderstanding, you must have answered to my reply after ithayer edited his comment, the initial comment said "constant time".
Re:The ReadyForZero Programming Challenge by drdo on Tuesday June 14, 2011 @06:49PM (#2655144)
Didn't understand what you meant, care to elaborate?