Senior developer Interview Questions | Glassdoor.co.uk

Find jobs for senior developer

Senior developer Interview Questions

1,629

senior developer 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

Debugging + System design: We wrote a simple (single-threaded) web crawler. Given a starting URL, it visits every reachable page. For each page, it determines the URLs of every static asset (images, javascript, stylesheets) on that page. The crawler returns a list with an entry for each crawled page and a listing of URLs for the assets found in that page.

8 Answers

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

5 Answers

Received solution for refactoring.

3 Answers

Coding interview: Given 2 Apis one that returns a list of merchants and another that returns merchant transactions, calculate payouts and apply discount rule.

4 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

When was the last time you made a mistake?

2 Answers
110 of 1,629 Interview Questions