Code as Fast as You Can Think
"I have only proved my code correct, not tested it" - Donald Knuth
Search This Blog
Sunday, October 18, 2009
Smallest Number Not In A List
Use pigeonhole principle
Reference:
http://en.wikipedia.org/wiki/Pigeonhole_principle
http://stackoverflow.com/questions/1586858/find-the-smallest-integer-not-in-a-list
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Unknown
View my complete profile
No comments:
Post a Comment