R
Richard
I need to determine if a given number or string is in a set of
numbers or strings. The standard hack I'd do is make a search tree,
but in this particular application I'm going to be doing a boatload
of these comparisons over and over and over, and I just checking to
see if there's not some smarter way to go about it.
Discussion, links, etc. appreciated.
numbers or strings. The standard hack I'd do is make a search tree,
but in this particular application I'm going to be doing a boatload
of these comparisons over and over and over, and I just checking to
see if there's not some smarter way to go about it.
Discussion, links, etc. appreciated.