Your question is Subset Check for Integers. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Sumitomo Mitsui Banking Corporation may receive integer collections representing permitted and requested transaction classifications. Given two integer lists, determine whether the first list represents a subset of the second list.
Treat each list as a mathematical set, so duplicate values do not affect the result. Return True if every distinct value in candidate occurs in reference; otherwise, return False. The input lists may be unsorted, and the function must not modify either list.
Implement is_subset(candidate, reference).
candidate and reference.True when set(candidate) is contained in set(reference), and False otherwise.def is_subset(candidate, reference):