solve some problems with Prolog -- 2

Job ID: 35536740

Budget: $30 – $250 USD

6 small Leetcode type of problems using Prolog. Example:

"Show a Prolog predicate “indices” that takes a list of indices (numbering from zero) and a list of elements, and returns a list of the elements with the indices, so that
indices( [1,3,4], [a,b,c,d,e,f], ES )
ES = [b,d,e]"

$10 for each above type of question. total $60
Deadline in 24 hours.
Related categories: Prolog Coding