Sr software engineer Interview Questions
sr software engineer interview questions shared by candidates
Top Interview Questions
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. 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 Show more responses |
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. |
Find Kth minimum node in a binary tree and suggest a complexity |
Received solution for refactoring. |
Write algorithm to convert number for example 16 138 832 into "sixteen million one hundred thirty eight thousand eight hundred thirty two" |
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 |
Write a javascript function to draw a chessboard |
Given these meter readings, write a program that outputs usage by month |
All questions around multithreading. |
When was the last time you made a mistake? |
See Interview Questions for Similar Jobs
- Software Engineer
- Software Developer
- Senior Software Developer
- Java Developer
- Software Development Engineer
- Software Engineer III
- Senior Software Development Engineer
- Senior Developer
- Principal Software Engineer
- Analyst
- Consultant
- Project Manager
- Graduate Software Engineer
- Product Manager
- Senior Engineer
- Developer
- Technology Analyst
- Business Analyst
- Intern