/99-problems-reason

Solutions to 99 Problems implemented in Reason 🚀

Primary LanguageOCamlMIT LicenseMIT

99 Problems in Reason 🚀

Solutions to 99 Problems implemented in ReasonML.

Working with lists

  1. Write a function last : 'a list -> 'a option that returns the last element of a list. (easy)

Solution

  1. Find the last but one (last and penultimate) elements of a list. (easy)

Solution

  1. Find the k'th element of a list. (easy)

Solution

  1. Find the number of elements of a list. (easy)

Solution

  1. Reverse a list. (easy)

Solution

  1. Find out whether a list is a palindrome. (easy)

Solution

  1. Flatten a nested list structure. (medium)

Solution

  1. Eliminate consecutive duplicates of list elements. (medium)

Solution

  1. Pack consecutive duplicates of list elements into sublists. (medium)

Solution

  1. Run-length encoding of a list. (easy)

Solution

  1. Modified run-length encoding. (easy)

Solution

  1. Decode a run-length encoded list. (medium)

Solution

Build

npm run build

Build + Watch

npm run watch

Inspiration