Software Development Team Lead Interview Questions

8,277 software development team lead interview questions shared by candidates

Given two lists of elements A and B (can be anything strings, integers etc), compute the diff between them. Note that each of the lists can contain duplicates. The diff should return two lists: Elements in A that are not in B Elements in B that are not in A For e.g. Diff([1,2,3,4] [1,2,3]) = [4] and [] Diff([1,2,2,2], [1,2]) = [2,2] and [] Diff([1,2,2,2], [1,2,3,3,3]) = [2,2] and [3,3,3]
avatar

Varification Team Lead

Interviewed at Google

4.4
Apr 5, 2024

Given two lists of elements A and B (can be anything strings, integers etc), compute the diff between them. Note that each of the lists can contain duplicates. The diff should return two lists: Elements in A that are not in B Elements in B that are not in A For e.g. Diff([1,2,3,4] [1,2,3]) = [4] and [] Diff([1,2,2,2], [1,2]) = [2,2] and [] Diff([1,2,2,2], [1,2,3,3,3]) = [2,2] and [3,3,3]

Viewing 5231 - 5240 interview questions

Glassdoor has 8,277 interview questions and reports from Software development team lead interviews. Prepare for your interview. Get hired. Love your job.