Software engineer internship Interview Questions | Glassdoor.co.uk

software engineer internship Interviews

Software engineer internship Interview Questions

205

software engineer internship interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

How work you work out all the prime numbers up to a given range?

3 Answers

Store all the prime numbers in an array and compare the next number with the array to find out whether it is prime or not.

Sieve of Eratosthenes algorithm. create an array of the numbers, set them all to the value 1. Start at 2, set every second number after 2 to 0. move to the next number (3). change every third number after three to zero. stop when there's no more numbers set to 1 or you reach the end of the array. At the end, the numbers marked 1 are the primes.

Interview candidate - did you give that answer in the interview? If so, what did they say?

What were my career aspirations.

2 Answers

What is the difference between Java and JavaScript?

2 Answers

Q: Given an array of integers, such that their product is also a 32-bit signed integer, replace each element of the array with the product of all elements besides it.

2 Answers

write a function to check if two strings are substrings of each other (either first is substring of second or vice versa). write a function to check if two strings are anagrams of each other. The interview was 45 minutes and we didn't have time to code the seconds question so i discussed the two solutions and analyzed their time and space complexities.

2 Answers

Having a function that generates only 0 or 1, write a function that using the above function to generate integer in the range [0, n] with n given, and by giving same chance to all the numbers by calling only that function.

2 Answers

Why Software engineering

1 Answer

There is a building with 100 floors and you have two eggs. Both eggs will break if dropped from the same certain floor. How can you find this certain floor in the least number of egg drops?

1 Answer

Can you tell me a little about yourself?

1 Answer

Given a browser history (initially empty), you have 2 perform 2 operations: add a link (as a string) to the history, or display the last k distinct visited links.Example: if history is ('c','a','b','a','a') and there is a query operation with k=2 ('a','b') must be displayed.

1 Answer
110 of 205 Interview Questions

See Interview Questions for Similar Jobs