if I have an array of two arrays
D[0] = array ("I", "want", "to", "make", "cake", "and", "make", "juice")
D[1] = array ("Sister", "want", "to", "takes", "the", "cake", "that", "i", "made")
how to count the occurrences of words that are in both arrays?
eg output:
word | array[0] | array[1]
I : 1 | 1
want : 1 | 1
to : 1 | 1
make : 2 | 0
cake : 1 | 1
and : 1 | 0
juice : 1 | 0
sister : 0 | 1
takes : 0 | 1
the : 0 |1
that : 0 | 1
made : 0 | 1