Principal Software Engineer Interview Questions

2,159 principal software engineer interview questions shared by candidates

Implement a method 'find' that will find the starting index (zero based) where the second list occurs as a sub-list in the first list. It should return -1 if the sub-list cannot be found. Arguments are always given, not empty. Sample Input 1 list1 = (1, 2, 3) list2 = (2, 3) Sample Output 1 1 Explanation As second list (2, 3) is sub-list in first list (1, 2, 3) at index 1 Sample Input 2 list1 = (1, 2, 3) list2 = (3, 2) Sample Output 2 -1
avatar

Principal Software Developer

Interviewed at Atlassian

3.1
Jun 23, 2016

Implement a method 'find' that will find the starting index (zero based) where the second list occurs as a sub-list in the first list. It should return -1 if the sub-list cannot be found. Arguments are always given, not empty. Sample Input 1 list1 = (1, 2, 3) list2 = (2, 3) Sample Output 1 1 Explanation As second list (2, 3) is sub-list in first list (1, 2, 3) at index 1 Sample Input 2 list1 = (1, 2, 3) list2 = (3, 2) Sample Output 2 -1

In technical rounds, questions were mostly to judge java coding skills, problem solving skills, design skills, any important functionality you delivered in your current project, etc. eg. Two threads, one printing odd numbers, another printing even numbers. Run them in such a way, output comes as 1,2,3,4,... in order.
avatar

Principal Software Engineer

Interviewed at SAP

4.2
Oct 4, 2015

In technical rounds, questions were mostly to judge java coding skills, problem solving skills, design skills, any important functionality you delivered in your current project, etc. eg. Two threads, one printing odd numbers, another printing even numbers. Run them in such a way, output comes as 1,2,3,4,... in order.

Viewing 231 - 240 interview questions

Glassdoor has 2,159 interview questions and reports from Principal software engineer interviews. Prepare for your interview. Get hired. Love your job.