Question: Write a prolog program that will determine the equal integers in two different sorted lists and will form a third list that will consist of
Write a prolog program that will determine the equal integers in two different sorted
lists and will form a third list that will consist of these equal integers.
The predicate that you will implement will be queried as follows:
build
;
No
Step by Step Solution
There are 3 Steps involved in it
Answer Base case If either list is empty there cant be any common elements build Case where X is in ... View full answer
Get step-by-step solutions from verified subject matter experts
