Hi everyone,
Im trying to code the Longest Decreasing Subsequences out of a given List in prolog.
The problem is is that i get duplicates of the answers.
here is my code:
sublist([],[]).
sublist([X|R],[X|S]):- sublist(R,S).
sublist([_|R],S):- sublist(R,S).
% longest(List,SubList)/2 with mode...