Profile
Achievement
rtperson's Recent SnippetsTagged c
- All /
« Prev 1 Next »
Two versions of binary search -- one recursive, one iterative -- for an array of strings.
Both assume that your array index fits within an integer.
0
1023
posted 12 years ago by rtperson
Check that a given integer consists only of elements of a given set. It does a linear search through the set, so the assumption is that the set to search is relatively small. If you're chewing through a particularly large set of digits, you may want...
0
985
posted 13 years ago by rtperson