7 hash set interview questions, asked at Airbnb, Apple, Google and 2 more companies. Last asked Oct 2026.
Merchant onboarding CSV validatorCodingMerchants submit their business details as rows of a simple CSV. Before a merchant can accept payments, every row must pass a set of checks. Write validaterecords(data…
Last asked Oct 2026
Deduplicate account sign-ups by email and phoneCodingA sign-up service processes account registrations one at a time, in the order they arrive. You get three lists of the same length n: names, emails and phones. Index i of each list…
Last asked Apr 2026
Split stays across two listingsCodingA vacation rental site wants to offer split stays: when no single home is free for a guest's whole trip, the guest stays in one home first and then moves to another. There are n…
Last asked Feb 2026
Zero out duplicates and sort an arrayCodingGiven an unsorted array of about 75 integers that may contain duplicates, replace the repeated copies with zero and return the array sorted. Discuss the time and space of your…
Last asked Feb 2026
Iterator that yields one array first, then the rest of anotherCodingDesign an iterator over two integer arrays, a and b, that returns elements in this order: 1. Every element of b, in its original order (duplicates included). 2. Then every element…
Last asked Jan 2026
Happy numberCodingReplace a number with the sum of the squares of its digits and repeat. Return whether it reaches 1 or loops forever. Detect the loop with a set of seen values or with fast and…
Last asked Oct 2025
Co-occurring tags for a tag filterCodingEach title in a catalog carries a group of tags that were assigned together, for example "drama", "british", "crime". You get all the groups as a list of lists of strings, groups…