I am looking at an algorithm that does the following
I have two List<String>, say
List<String> A == {"20", "32A", "50K", "50F", "50D", "70", "72"}
List<String> B == {"20", "32A", "72"}
I want to make sure that List B is a subset of A in the proper order.
Examples:
B == {"20", "32A", "72"}should returntrueB == {"20", "32A", "70"}should returntrueB == {"20", "32A", "40"}should returnfalse(Adoesn't have"40")B == {"32A", "20", "70"}should returnfalse(Ahas"20", "32A", "70"order)