Twitter phone screen
Anonymous User
2259
Jun 15, 2021

Question I was asked was:

Given two maps in assertThat(map1, map2), write a function that can help the user with the comparison. The signature they gave was:

<K,V> ??? diff (Map<K,V> left, Map<K,V> right)

??? denotes any datastructure I would like to create/use.

How would you approach the problem?

Comments (5)