Software Engineer Principal Interview Questions

2,045 software engineer principal interview questions shared by candidates

Aside from the usual types of interview questions what stood out was being given a programming problem 48 hours before the in-person interview. The instruction were clear that a range of solutions were possible and functioning code was not mandatory.
avatar

Principal Software Engineer

Interviewed at Newforma

4.2
Oct 8, 2018

Aside from the usual types of interview questions what stood out was being given a programming problem 48 hours before the in-person interview. The instruction were clear that a range of solutions were possible and functioning code was not mandatory.

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

Viewing 221 - 230 interview questions

Glassdoor has 2,045 interview questions and reports from Software engineer principal interviews. Prepare for your interview. Get hired. Love your job.