Question: Write a method that takes two lists, and tells whether the first is a subset of the second. You can't use framework methods that do

Write a method that takes two lists, and tells whether the first is a subset of the second. You can't use framework methods that do this for you, such as contains() or indexOf(). In other words, you have to write the loops yourself. But, you can use the primitive methods such as get() and equals().
Also analyze the program's performance and state the big-O complexity of your method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!