Software Engineer
Software Engineer
High QualityInterview Summary
The Wealthfront online assessment contained two algorithm questions. The first asked for the minimum number of characters that must be added to two strings so they become anagrams. The second involved taking the union of up to 100,000 integer intervals and returning how many disjoint intervals remain after all overlaps are merged.
Interview Details
Question 1 — Minimum Letters to Make Two Strings Anagrams
An anagram is a word formed by rearranging all letters of another word while preserving the frequency of every character. You are given two non-empty lowercase strings A and B. You may only add characters to either string. Characters cannot be deleted. Return the minimum total number of characters that must be added so that the resulting two strings are anagrams.
For example:
A = "rather"B = "harder"
Adding d to the first string and t to the second makes the two strings contain the same multiset of letters.
Unlock Full Details
Create a free account to unlock this interview experience report.