Profile
Achievement
rtperson's Recent C Snippets
- 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
783
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
725
posted 12 years ago by rtperson