Principal software engineer Interview Questions

1K

Principal Software Engineer interview questions shared by candidates

Top Interview Questions

Sort: Relevance|Popular|Date
LinkedIn
Principal Software Engineer was asked...14 December 2011

Given a large document and a short pattern consisting of a few words (eg. W1 W2 W3), find the shortest string that has all the words in any order (for eg. W2 foo bar dog W1 cat W3 -- is a valid pattern)

3 Answers

This is a classic minimal window problem described in detail here - http://www.leetcode.com/2010/11/finding-minimum-window-in-s-which.html. Less

import java.util.*; class Untitled { public static void main(String[] args) { String[] strs = {"a","b","d","e","x","b","z","s","x","c","e","c","d","b"}; String[] pattern = {"b","z","x"}; getMin(strs, pattern); } private static void getMin(String[] strs, String[] pattern){ //initialize the set HashSet set = new HashSet(); for(int i = 0; i map = new HashMap(); for(head = 0; head map, String[] strs, int position){ if (!map.containsKey(strs[position])) return true; if (map.get(strs[position]) <= 1) return false; return true; } } Less

Could you please explain this??

Oracle

Common algorithm question

3 Answers

I solved this problem correctly and explained what I did , also during writing each line I was explaining why I am writing it. But still no next round . Very useless .... I suggest do not spend your energy for this dead old company. Less

Could you please share the leetcode difficulty of the problems asked during the interview? Less

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Oracle or ex-Oracle Principal Software Engineer experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews Less

Palo Alto Networks

Coding in each round, Firewall, networking questions

3 Answers

LC Medium or Hard.

LC Medium or Hard?

Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in Palo Alto Networks to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of Palo Alto Networks Principal Software Engineer experts who provide mock interviews for a pretty reasonable amount. prepfully.com/practice-interviews Less

Dell Technologies

Java, Database and scripting questions

3 Answers

The key in these questions is to cover the fundamentals, and be ready for the back-and-forth with the interviewer. Might be worth doing a mock interview with one of the Dell or ex-Dell Principal Software Engineer experts on Prepfully? They give real-world practice and guidance, which is pretty helpful. prepfully.com/practice-interviews Less

How long did it take for you receive the offer after the final interview?

Did your technical interviews include coding on a white board?

Dell Technologies

TTD with pair programming.

3 Answers

what was the data structure implementation, if you don't mind?

How soon were these interviews scheduled ?

Through questions like this, interviewers are mostly trying to test your skillset (and its relevance to the role) as robustly as possible, so be prepared for multiple offshoots and followups. It could be a useful exercise to do mocks with friends or colleagues in Dell to get a real sense of what the interview is actually like. Alternatively Prepfully has a ton of Dell Principal Software Engineer experts who provide mock interviews for a pretty reasonable amount. prepfully.com/practice-interviews Less

Apigee

Print unique strings in a array.

2 Answers

Used HashSet to keep track of string that were already seen.

1) Build a Trie and just then just walk and print it then... 2) Like above, use hash, however, this is challenging if you can have unbounded string... as definition of string.... char-sequence-until-null so potential input can one huge sequence.... if it is known that string can be resonably 256 char long at max and all english letter then you can make hash function. Less

Motorola Solutions

Do you consider yourself a team player?

2 Answers

Yes.

Yes, I work good in a team but also work well independently!

Cubic

Find before last element in a LinkedList.

2 Answers

You need to go to the end and then count your way back, make sure to pass back the node each time its passed back. Less

I answered based on the Java API implementation. That was the wrong answer.

Atlassian

Complete functions within an application. Build a staircase, find a sub-list within a list. convert long to string in base 7. Look and say sequence. Control robot arm.

2 Answers

I attempted to complete as much as I could given my limited syntax knowledge of the other available languages. Java, Javascript, Objective C Less

Thanks for sharing. Do you still remember the details of those questions, e.s.p the 1st and last ones ? Less

Staples

"Can you just sign here, please?"

2 Answers

This is funny. ;P

Can I sign there? Yes, I see no reason I couldn't. Will I sign there? Quite possibly, after I've had a chance to ascertain what it is I'm signing. Less

Viewing 1 - 10 of 1,283 Interview Questions