Monthly Archives: July 2008

Cedric’s Problem in OCaml

From Otaku, Cedric’s weblog: Here is an interesting coding challenge: write a counter function that counts from 1 to max but only returns numbers whose digits don’t repeat. For example, part of the output would be: * 8, 9, 10, 12 (11 is not valid) * 98, 102, 103 (99, 100 and 101 are not [...]

Posted in To Be Categorized | 14 Comments
  • Categories