Common Interview Questions | Glassdoor

# Common Interview Questions

11

interview questions shared by candidates

## Common Interview Questions

Sort: RelevancePopular Date

### Software Engineer at NortonLifeLock was asked...

Jul 10, 2011
 find lowest common ancestor of 2 nodes in a binary tree3 AnswersI tried a complicated recursive methods and got stuck. If there is no restriction, we actually could use an hash map to store tree nodes while tracing up the parent nodes of the given nodes. if a common node is found to be parent of the given 2 nodes then print it outNode lowestCommonAncestor(Node root, Node a, Node b) { if (root.contains(a) && root.contains(b)) { if (root.left != null && root.left.contains(a) && root.left.contains(b)) return lowestCommonAncestor(root.left, a, b); else if (root.right != null && root.right.contains(a) && root.right.contains(b)) return lowestCommonAncestor(root.right, a, b); else return root; } else return null; } boolean contains(Node root, Node x) { if (root == null || x == null) return false; // not needed. Defensive coding if (root == x) return true; if (root.left != null and root.left.contains(x)) return true; if (root.right != null and root.right.contains(x)) return true; return false; }int lowestCommonAncestor(Node node, int value1, int value2){ if(node == null) return -1; if(value1 > node.data && value2 > node.data) return lowestCommonAncestor(node.right, value1, value2); else if(value1 < node.data && value2 < node.data) return lowestCommonAncestor(node.left, value1, value2); else return node.data; }

### Delivery Driver at Ralphie's Pizza & Subs was asked...

Dec 27, 2013
 How would you handle an irate customer?1 AnswerApologize to the customer. Voice understanding and attempt to sympathize. Offer options for resolution, be it a remake of food, coupons, or refunds (if within your power to grant) Most of the time referral to the manager on staff is the best idea.

Jan 1, 2013
 They were all straightforward and not difficult to answer.1 AnswerAnswer honestly. They are not difficult questions and if you cannot answer honestly, you may not be a good fit.

### Sales Representative at GEICO was asked...

Feb 18, 2011
 how would sale carwash coupons or services to potential customer1 AnswerSo long ago I forgot what BS response I given just something they want to hear

### Store Manager at EZPAWN was asked...

Dec 24, 2013
 Sell me this pen? And what would you do if you caught your employees stealing( they literally think everyone is stealing from them). Reality it's a generic store manager interview substitute pawn for all the normal questions. I think they literally take it from googles best interview questions.1 AnswerObvious

### Sales Assistant at HD Sheldon & Company was asked...

Jan 20, 2016
 are you married or single5 AnswersI said married, to which he replied " well here you are married to me, you can take care of the husband at home"I agree! He is breaking all Labor Rules especially towards a woman. Some one should definitely report this to Dept. of Labor. His customers should also be informed.I believe everything the interviewee said. The President of the company is very sexists and a man who belittles women by flirting and making them feel like low life. Based on his background, he destroyed his marriage life because of his wandering eye. Numerous have left because of his unprofessional way of treating the females in the office.Show More ResponsesI think that is no true that all ....Robert and his Son are very respect with all the women who woRobert and his Son are very respect with all the women who working here,

### Sales Associate at Pacific Sunwear was asked...

Jan 29, 2013
 "If you could be any part in a garden salad, what ingredient would you be?"1 AnswerCucumber

### Web Developer III at Active Network was asked...

Aug 31, 2014
 What is a Common Table Expression?1 AnswerThis is a Common Table Expression: ;with recentMod_CTE (ProductID, ListPrice, ModifiedDate) AS ( select p.ProductID, p.ListPrice, p.ModifiedDate from AdventureWorks2012.Production.ProductListPriceHistory p ) select ProductID, sum(ListPrice) from recentMod_CTE where ProductID > 708 group by ProductID There are about 9 lifecycle functions in ASP.NET. This page has some details: http://msdn.microsoft.com/en-us/library/ms178472%28v=vs.80%29.ASPX