The recent URL https://ocaml-sf.org/learn-ocaml-public/#activity%3Dexercises
contains auto-graded OCaml exercises, in particular a bunch of advanced and fairly interesting exercices written by François Pottier, which I would recommend for anyone knowledgeable in OCaml and curious about algorithms and functional programming. (You have to scroll down to see those, the exercises at the top come from the OCaml MOOC.)
See for example François’ exercises on:
- Alpha-Beta Search,
- Parser combinators,
- Huffman Compression,
- Implementing backtracking with continuations, or
- my personal favorite, reimplementing the core of a pretty-printer.
Context: the exercise platform is LearnOCaml, initially written by OCamlPro for the OCaml MOOC and maintaing by Yann Régis-Gianas (@yurug) on behalf of the OCaml Software Foundation. We (at the Foundation) are trying to assemble a corpus of nice OCaml exercises for teachers and people self-studying, and the nice exercises by François Pottier (@fpottier) were written as part of this initiative.