Senior Software Engineering Interview Questions | Glassdoor

Senior Software Engineering Interview Questions

4,736

Senior software engineering interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Convert a string to an integer

6 Answers

Explain the data structure you would use to implement pop() and push(Object, int) for a Priority Queue.

6 Answers

Find the least common root for 2 numbers in a BST

5 Answers

Create a cache with fast look up that only stores the N most recently accessed items.

4 Answers

Print out, from small to big, of a sequence intergers, without sorting.

5 Answers

What sort would you use if you had a large data set on disk and a small amount of ram to work with?

5 Answers

Write algorithm to compute a Log to the base 2 of a number (integral results no need for floating point). Solution should not assume a particular size of integer

5 Answers

Pets +------------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | breed | varchar(255) | NO | | NULL | | | acquisition_date | datetime | NO | | NULL | | +------------------+--------------+------+-----+---------+----------------+ Customers +-------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | name | varchar(255) | NO | | NULL | | +-------+--------------+------+-----+---------+----------------+ Sales +-------------+----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+----------+------+-----+---------+-------+ | customer_id | int(11) | NO | PRI | NULL | | | pet_id | int(11) | NO | PRI | NULL | | | date | datetime | NO | | NULL | | +-------------+----------+------+-----+---------+-------+ Q1 How many pets of each breed has the shop ever owned?

4 Answers

Given a grid of size m by n, write an algorithm that computes all paths from 0,0 to m,n such that you can always step horizontally or vertically but cannot reverse.

5 Answers

Given and array. How do you find if there are such three numbers whose sum is Zero. What is the cost of this algorithm?

5 Answers