Microsoft Interview Question

I was suppose to solve the game “set”

Interview Answer

Anonymous

Aug 13, 2023

I represent the card by string of numbers between 1-3. Each char represents color, pattern, quantity and shape. At first I’m adding all the cards to dictionary, then check for all combinations of 2 cards if the third card is in the dictionary, if it is the it’s a set.