IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Yep, that's what I'd do
This is the same problem as the Social Security Number validator - assume you have a list of all valid SSN's. Design a program/data structure to rapidly tell you if a given SSN is valid.

Bit vector turns out to be the only really fast solution that fits in memory.




"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
Collapse Edited by tuberculosis Aug. 21, 2007, 06:06:26 AM EDT
Yep, that's what I'd do
This is the same problem as the Social Security Number validator - assume you have a list of all valid SSN's. Design a program/data structure to rapidly tell you if a given SSN is valid.

Bit vector turns out to be the only really fast solution that fits in memory.




"Whenever you find you are on the side of the majority, it is time to pause and reflect"   --Mark Twain

"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."   --Albert Einstein

"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses."   --George W. Bush
     Suppression code - (broomberg) - (7)
         Re: Suppression code - (dws) - (6)
             I don't golf real code -NT - (ben_tilly) - (3)
                 Golf - huh? -NT - (broomberg) - (2)
                     dws' "100 characters" comment is about golf - (ben_tilly) - (1)
                         OH - (broomberg)
             Further thinking while walking the dog - (dws)
             Yep, that's what I'd do - (tuberculosis)

Particularly fine on the conical-bore cornet.
44 ms