โ† HSBC questions

Check if List 1 is a Subset of List 2

Filed under HSBC

Given two lists of elements, write an efficient algorithm to check whether all elements in the first list exist within the second list.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

Collected from public candidate posts and coding forums. Updated Nov 2026.