Hi guys,
I am writing prolog code to find duplicates of an element in the same row and column. How do I do this?
For ex, if my input grid is like
grid(1,1,1).
grid(2,1,2).
grid(2,1,3).
grid(3,2,1).
grid(4,2,2).
grid(5,2,3).
grid(6,3,1).
grid(7,3,2).
grid(2,3,3).
which represents the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.