Technologist Trainee Interview Questions

4,798 technologist trainee interview questions shared by candidates

Alex has a set S of unordered pairs of integers. He has declared these pairs as 'good pairs'. He further declares that if any two pairs like (a,b) and (c,b) where there is a common integer between the pairs (in this case b), then the other two integers (a,c) also form a good pair. Given S find all the good pairs. S = (1,2), (3,4), (2,5) Answer = (1,2), (3,4), (2,5), (1,5) Note: You just have to explain the approach and not code.
avatar

Technologist

Interviewed at Alphonso

4.3
Dec 4, 2020

Alex has a set S of unordered pairs of integers. He has declared these pairs as 'good pairs'. He further declares that if any two pairs like (a,b) and (c,b) where there is a common integer between the pairs (in this case b), then the other two integers (a,c) also form a good pair. Given S find all the good pairs. S = (1,2), (3,4), (2,5) Answer = (1,2), (3,4), (2,5), (1,5) Note: You just have to explain the approach and not code.

Viewing 4161 - 4170 interview questions

Glassdoor has 4,798 interview questions and reports from Technologist trainee interviews. Prepare for your interview. Get hired. Love your job.