Solutions to 99 Problems implemented in ReasonML.
- Write a function last : 'a list -> 'a option that returns the last element of a list. (easy)
- Find the last but one (last and penultimate) elements of a list. (easy)
- Find the k'th element of a list. (easy)
- Find the number of elements of a list. (easy)
- Reverse a list. (easy)
- Find out whether a list is a palindrome. (easy)
- Flatten a nested list structure. (medium)
- Eliminate consecutive duplicates of list elements. (medium)
- Pack consecutive duplicates of list elements into sublists. (medium)
- Run-length encoding of a list. (easy)
- Modified run-length encoding. (easy)
- Decode a run-length encoded list. (medium)
npm run build
npm run watch