Senior engineer Interview Questions | Glassdoor.co.uk

Senior engineer Interview Questions

1,789

senior engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Except experience related questions I was asked coding question and I was supposed to write the solution to the problem in any programming language in a simple web-based code editor. The question was: given and array of positive integers and another integer find whether there is a consecutive range in the array, so that the sum of integers in the range is equal to the given number. They put an emphasis on delivering working, efficient solution. In my opinion this kind of interview requires a thorough preparation.

5 Answers

Efficient solution you say? Its easy to do it in O(N^2) but I think you mean the O(N*logN) solution. It took me about 5-10 minutes to come up with m, but I am not sure I would be able to write the full source code for this solution in a short period of time. If you did it - then thumbs up man!

Two answers, 2nd is O(n) {code} boolean findSum (int[] a, int index, int n) { if (n == 0) return true; if (index > a.size) return false; for (int i = index; i n) sum -= a[sp++]; } return false; } {code}

Corrected a bug in solutions 2 ab

Implement a method called printNonComments() which prints out a extract of text with comments removed. For example, the input: hello /* this is a multi line comment */ all Should produce: hello all You have access to a method called getNextLine() which returns the next line in the input string.

5 Answers

Find Kth minimum node in a binary tree and suggest a complexity

5 Answers

Received solution for refactoring.

3 Answers

Write algorithm to convert number for example 16 138 832 into "sixteen million one hundred thirty eight thousand eight hundred thirty two"

3 Answers

Write a javascript function to draw a chessboard

3 Answers

How will you prevent the code in finally block from executing? The question isn't a very fair one as a good programmer would not write the code in finally block that he/she doesn't want to execute

3 Answers

All questions around multithreading.

2 Answers

Given these meter readings, write a program that outputs usage by month

2 Answers

When was the last time you made a mistake?

2 Answers
110 of 1,789 Interview Questions