An open API service indexing awesome lists of open source software.

https://github.com/beoliver/99-prolog-problems


https://github.com/beoliver/99-prolog-problems

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

          

# 99 Prolog Problems

https://www.ic.unicamp.br/~meidanis/courses/mc336/2009s2/prolog/problemas/

| Problem | Description | difficulty |
| ------- | -------------------------------------------------------------------------------------------------------------- | ---------- |
| P01 | [Find the last element of a list.](./P01) | \* |
| P02 | [Find the last but one element of a list.](./P02) | \* |
| P03 | [Find the K'th element of a list.](./P03) | \* |
| P04 | [Find the number of elements of a list.](./P04) | \* |
| P05 | [Reverse a list.](./P05) | \* |
| P06 | [Find out whether a list is a palindrome.](./P06) | \* |
| P07 | [Flatten a nested list structure.](./P07) | \*\* |
| P08 | [Eliminate consecutive duplicates of list elements.](./P08) | \*\* |
| P09 | [Pack consecutive duplicates of list elements into sublists.](./P09) | \*\* |
| P10 | [Use the result of problem P09 to implement the so-called run-length encoding data compression method.](./P10) | \* |
| P11 | [Modified run-length encoding.](./P11) | \* |
| P12 | [Decode a run-length encoded list.](./P12) | \* |
| P13 | [Run-length encoding of a list (direct solution).](./P13) | \*\* |
| P14 | [Duplicate the elements of a list.](./P14) | \* |
| P15 | [Duplicate the elements of a list a given number of times.](./P15) | \*\* |
| P16 | [Drop every N'th element from a list.](./P16) | \*\* |
| P17 | [Split a list into two parts; the length of the first part is given.](./P17) | \* |
| P18 | [Extract a slice from a list.](./P18) | \*\* |
| P19 | [Rotate a list N places to the left.](./P19) | \*\* |