Software Engineer Interview Questions | Glassdoor.co.uk

Glassdoor uses cookies to improve your site experience. By continuing, you agree to our use of cookies. OK | Learn More

Software Engineer Interview Questions

1,632

Software engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

The questions were not very difficult but you really need to have all the concepts crystal-clear and be ready to apply them successfully. One of the questions was "how to count the letters in this string:" "The quick brown fox jumps over the lazy dog";

11 Answers

public static int countWords(String str){ if(str == null || str.isEmpty()) return 0; int count = 0; for(int e = 0; e < str.length(); e++){ if(str.charAt(e) != ' '){ count++; while(str.charAt(e) != ' ' && e < str.length()-1){ e++; } }else{ e++; } } return count; }

Sorry, the above version has an error!!!!!!!!!!!!!!!!!!!!!!!! concider this one: public static int countWords(String str){ if(str == null || str.isEmpty()) return 0; int count = 0; for(int e = 0; e < str.length(); e++){ if(str.charAt(e) != ' '){ count++; while(str.charAt(e) != ' ' && e < str.length()-1){ e++; } } } return count; }

# That's why i love Python: len(re.findall('[a-zA-Z]', s))

Write a function that takes the ordinal number of a column in a spreadsheet and returns the label of that column: i.e. 1 -> A 2 -> B, 26 -> Z, 27->AA

7 Answers

You have three doors, behind one there is a prize. You choose door A, after that I ll tell you that behind door B there is no prize, do yuo keep your choice or change it ?

7 Answers

Given a list of words, right a function to return a list of pairs of palindromes

5 Answers

Given the pre-order and in-order traversing result of a binary tree, write a function to rebuild the tree.

5 Answers

Assuming you have a large cube shaped by small cubes together, their number is 1000 How many cubes will be visible?

4 Answers

Find if there are two members of an array that sum to 10 (10 and 0 count, but 10 alone does not).

4 Answers

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

3 Answers

When you have multiple classes in C++ in a hierarchy, what was the way in which the ctors and dtors are called.

3 Answers

Given two unsorted arrays, one with event start times and one with end times, find out if any two events overlap.

5 Answers
110 of 1,632 Interview Questions