Senior software engineer Interview Questions in Boston, MA |

Senior software engineer Interview Questions in Boston, MA, US


senior software engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Find the largest sum of contiguous numbers in an array

6 Answers

Are you sure?! If this is the question then just add all numbers of the array lol.

What about negative numbers in the array - you can't just sum it up

Good point! In that case, just iterate over the array and: 1) n 0, add 3) next time you encounter n <=0, compare with the current max number and assign the new sum if larger.

Given a 2D map w/ walls: -------- | | |xxxx | | | ------------- Write a function that finds the shortest route distance between any two empty points in the map.

5 Answers

What is the efficiency of finding an element in an unsorted array of strings

4 Answers

Design an alert system. You have 500,000 hotels you represent, and about 250,000 are visited each day. You want to track hotel page visits such that, if more than 10 visitors per a) 5 minutes, b) 1 hour, and c) 24 hours occur, then a (different for each time period) "alert" appears when someone visits one of those "hot" hotel pages. Don't worry about the UI part, just design the underlying alert system. Then optimize your solution for space.

5 Answers

1. Can you extend main method in Java? 2. Explain how hashmap works internally? 3. Relation between hash code and equals? 3. Difference between StringBuffer/StringBuilder? 4. Code to check the frequency of word occurrence? 5.Code to implement a country/state list generation logic? Follow-up - country name can have aliases 6.Spring bean wiring.

5 Answers

1. How to encrypt a set of string e.g. WAAAYYFFFFFAIIIRR to W1A3Y2F4A1I3R2 etc... And how to decrypt it back to original string (2 separate functions) 2. How to design a system so that user can check in their location thru their phone, and how to scale it when the app gets popular and millions of users are using it. How would you expand the application features when popularity grows. 3. How to design a database of Warehouse, Suppliers and Customers and they ask you to write various SQL queries to pull products sold, how many customers bought more than 30 products etc 4. A coding problem to simulate the coin game and gambler's fallacy (if they are 4 Heads in a row, gambler would bet on Tail, and vice versa).

4 Answers

Write a code that show all possible permutation from a given String.

4 Answers

What does HTTP response code 404 mean?

3 Answers

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

(f2f whiteboarding) Find the most common ancestor of two tree nodes.

2 Answers

1 different weight object out of 8, how to find with least measurement.

2 Answers