99 Problems in OCaml

The tutorial "99 Problems in OCaml" is an exercise-wise approach to the OCaml programming language. I have adapted the problem set from "99 Problems in Haskell". Similar sets exists for Prolog and Lisp. I believe that the contribution of solutions should be open to anyone. Please feel free to copy this page and the solutions to a wiki, but let me know. If you rather contribute solutions or would like to point out errata, send me an email to ocaml(at)christiankissig.de .


Read more: 99 Problems in OCaml

Euler Problems in OCaml

The Euler Project provides a set of exercises, especially suited for novices in programming languages. Should you wish to take part in the competition, register at their website; and if you don't mind the spoiler, have a look at the solutions in Haskell. On this page I accumulate the algorithms written in OCaml. Contributions and questions are welcome at ocaml(at)christiankissig.de .

Read more: Euler Problems in OCaml

Problems in OCaml

I keep receiving emails with problems sets and questions about OCaml programming mostly from readers of the "99 Problems in OCaml". Many thanks to those who wrote me! I am happy to reply as soon as I can, however note the following :

  • Please don't send me problem sets from assessed coursework. Assignments are meant for you to thrive on, and for your teachers to measure your/their progress.
  • Don't send me problem sets handed out by companies for interviewing purposes. If you don't manage the application procedure, you won't cope with your job.
  • If you do send me a problem to solve, expect me to make the solution available to the public. If you need me to not undisclose either problem or solution, indicate it in your email.
  • Send your question/problem to ocaml(at)christiankissig.de.

Below you find the solutions to some problems.

Read more: Problems in OCaml

Programming Challenges

This is a list of programming challenges in random order:

  • 99 Problems in Prolog, Haskell, Lisp, OCaml is a set of basic programming exercises, tailored to Prolog.Users of strictly typed programming languages, will find it tedious to implement the tree-like datastructures.
  • Project Euler is a collection of 200 mathematics orient exercises. Some of the exercises require large number arithmetics. There are solutions in Haskell and OCaml (in progress). You need to register if want to take part in the challenge.
  • IBM Research runs a monthly competition.Problems are given at the beginning of the month, deadlines are in principal the end of each mont, reward is entrance in their hall of fame.
  • Code Golf asks you to find shortest solutions to a given problem in any programming language,
  • "Using Your Head is Permitted" is a site with monthly mathematical puzzles.