I'm not looking for an exact solution but looking for a keyword to research on. Not sure why but I really couldn't manage to find any examples for this very simple problem.
Lets assume I got 3 lists(could be more) that looks this:
l1=[x,y,z]
l2=[a,y,z,b]
l3=[a,b,c,d,e]
and what I'm trying to do is to have an comparison table looks like this:
l1 l2 l3
a 0 1 1
b 0 1 1
c 0 0 1
d 0 0 1
e 0 0 1
x 1 0 0
y 1 1 0
z 1 1 0
lists can be in different length and they never have repetitions like:
l = [x,x,y]
again I'm not asking for someone to handle the task for me but I'm just looking for some keywords, advices, pseudo code to get things started.