Question d’entretien chez Gusto

Given two hashmap type data structures (expected, actual) compare the two maps and return the differences in the maps. Map values can be another map or it can be an integer value. A map can look like the following: Apple - 3 Orange Banana - 4 Strawberry - 7 Key Apple maps to 3 Key orange maps to another map containing banana mapped to 4 and strawberry mapped to 7

Réponses aux questions d'entretien

Utilisateur anonyme

14 févr. 2019

Recursive type solution where you have to flatten the keys of both maps. So for example on the map above: Apple - 3 Orange.Banana - 4 Orange.Strawberry - 7 And then compare the flattened key value mappings for differences.

Utilisateur anonyme

31 janv. 2021

Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in Gusto to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of Gusto Software Engineer New Grad experts who provide mock interviews for a pretty reasonable amount. prepfully.com/practice-interviews