Open In App

Expedia Group Interview Experience for SDE-2 (2 Years Experienced)

Coding Round 1:

Input – (1,1) , (5,2)
Output – Yes
RED    GREEN    BLUE
BLACK  0   0    0
WHITE  255   255    255  
RED  255   0    0
GREEN  0   255    0
BLUE  0   255    0

Distance between two pixels is square root((r1-r2)^2 + (g1-g2)^2 + (b1-b2)^2), where r1 and r2 are red values in pixel, g1 and g2 are green values in pixel, and b1 and b2 are blue value in pixel. 
Return for each binary representation of RGB values, its minimum distance for these 5 colors. If a given pixel is at the same distance from more than one of these 5 colors, return “Ambiguous”.



Input – n =1
101111010110011011100100
Output – White

Round 1:

Round 2:



Round 3:

Article Tags :