Senior software developer Interview Questions |

Find jobs for senior software developer

Senior software developer Interview Questions


senior software developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Give a range of numbers, return 6 different numbers randomly. In O(n).

3 Answers

Suppose the range from 0 to 100 1- Create and initialize an array of 101 elements, filled from 0 --> 100 2- Set the max to be the last element in the array i.e max = 100 3- Get a random number between 0 and max. r= rand(0,max) 4- Replace array[r] with array[max] and decrease max by 1(max = max -1) 5- Repeat from step 3

As this question is usually posed, there is an additional constraint: the numbers are presented in a stream, and you do not have enough memory to store them all.

public static void main(String[] args) { int max = 100; Integer[] nums = new Integer[max]; for (int i = 0; i < nums.length; i++) { nums[i] = i; } Collections.shuffle(Arrays.asList(nums)); for (int i = 0; i < 6; i++) { System.out.println(nums[i]); } }

find a number in a sorted array and then find the number in an unsorted array ?They will unsort the array on their own .

4 Answers

General background, and technical questions.

2 Answers

Given a list of ordered number, choose 6 unique number randomly.

2 Answers

How many years experience have you with C#.

1 Answer

Design a client to talk to your new REST service

1 Answer

To speak about a time I had to work directly with a customer, or deliver something to a customer in short timespan

1 Answer

meaning of final, finalize and finally

1 Answer

What's the scope of this keyword in an anonymous function in JS

1 Answer

General competency questions, related to technical matters but also to check culture fit. How did you setup CD / CI pipeline? Describe some good practices you use?

1 Answer
110 of 339 Interview Questions