Software Engineering Interview Questions

56,371 software engineering interview questions shared by candidates

Given a list of dominoes (represented as tuples), what is the longest row of dominoes that you can place down such that adjacent sides of neighboring dominoes have the same label? An example list of dominoes is [(0,3), (3,1), (2,1), (4,0)] and a valid row would be [(0,3), (3,1), (1,2)],
avatar

Engineering Residency

Interviewed at Google

4.4
Jan 15, 2020

Given a list of dominoes (represented as tuples), what is the longest row of dominoes that you can place down such that adjacent sides of neighboring dominoes have the same label? An example list of dominoes is [(0,3), (3,1), (2,1), (4,0)] and a valid row would be [(0,3), (3,1), (1,2)],

Viewing 621 - 630 interview questions

Glassdoor has 56,371 interview questions and reports from Software engineering interviews. Prepare for your interview. Get hired. Love your job.