https://github.com/beoliver/99-prolog-problems
https://github.com/beoliver/99-prolog-problems
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/beoliver/99-prolog-problems
- Owner: beoliver
- Created: 2021-05-28T11:36:54.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T15:44:54.000Z (over 4 years ago)
- Last Synced: 2025-01-29T06:48:11.587Z (12 months ago)
- Language: Prolog
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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) | \*\* |