I have a database of hexadecimal lists like
"12 A2 3E BB DC 5E AD C7 00 ?? A2 00 EE ?? C3 55 90"
there are ??(two question marks) for unknown value

I have to compare the lists in database with a list of actual hex values read from an executable file. There are no question marks in these hex values read, instead there is an hex value

I am trying to find the efficient way to compare these two lists.

One way I thought of is to make binary search trees of the two lists but the problem with this solution is how do I treat "??" in the first list.

or help me with another "efficient" way.

Any help is appreciated.