Declarative Programming Languages for Programming Contests

Declarative programming languages relieve the programmer from low-level chores common in imperative programming languages such as counting loop counters and chasing after pointers, as well as the endless debugging and the profound unreadability that follow.

There are two broad classes of declarative programming languages:

My current favourite one is Haskell.

This web page demonstrates the use of declarative languages for the type of problems that appear in programming contests. It collects and makes available my solutions to the problems written in my favourite declarative language of the day. I hope you enjoy reading them.

Problem index

Albert Y. C. Lai