Graduate software engineer Interview Questions in United Kingdom | Glassdoor.co.uk

# Graduate software engineer Interview Questions in United Kingdom

1,165

graduate software engineer interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

16 Dec 2015
 Given an array of integers, delete the max and min numbers (both could appear more than once) in place. Do it in O(n) without shifting.4 AnswersGo through the array twice. In the first run save the min and max, in the second run remove them. Both steps are O(N), so the entire algo is also O(N), it does not matter that the array is walked twice.1. find max and min in first loop 2. In second loop following if element is min/max = simply increment a counter else a[i-counter] = a[i].1. find max and min in first loop. 2. In second loop if a[i] is min/max then simply increment a counter else a[i-counter] = a[i].Show more responsesYou could do in one loop, with two cursors :)

20 May 2020
 Questions about a modified form of blackjack as well as one about sending messaged on stone tablets.4 AnswersHi do you remember what types of question have you received? ThanksI meant what was the details of the blackjack question? just create a pysdocode / program to win against player? what other rules were there to consider?Hi Could you kindly advise what the expectations were in the answer to this question? Were you to write a program for blackjack? Do you have the choice of programming in any language of your choice. Is pseudo code acceptable?Show more responsesFlapjack is the name of the game that was given, similar rules to black jack, and uses a points based system with 5 rounds. You are supposed to design a program that allows a human to play with a computer. Can be written in pseudo code.

16 Aug 2015
 There are 2 ropes which both last for 1 hour when burning. Use these 2 ropes to get 1 hour and a half.4 AnswersFold one of the ropes into 2 halves and connect the ends of it with the other one. Burn the first rope from the middle.Burn first rope (1hr). After that burn second rope but on both ends(0.5 hr).Join two ropes and burn one in the middle and the other in the endShow more responsesWhy are we burning ropes?

2 Jun 2018
 Examples of teamwork etc. general questions like that4 AnswersWhat are group exercise like?They change it frequently but roughly you have some requirements, and you either have to figure the solution or build the solution (i.e. hiring a candidate based on their skills and requirements, building a Lego bridge to the requirements etc)What’s the best way to response in group exercises? I mean what things you should do in group exerciseShow more responsesBe the one who leads - often that means being the first one to talk/break the beginning awkward silence. There's usually some catch or something in the requirements they give you so be the one to spot it. For example the hidden catch for us in bridge building was only one person can touch one colour of the lego, so being the one to spot it shows you're observant. Also remember it doesn't matter if you pass the task or get it right, it's more about showing the instructor you're capable, so if you get the spec then be the one to say 'okay guys let's take 2 mins to read the spec then we discuss it'

27 Feb 2019
 Asked me a broad range of questions on algorithmics3 AnswersI brushed up on my algorithmics taught in the 2nd year of my university course before going to the interview. Search algorithms, trees etc. should be sufficientHi, may I ask if OOP designing question included in the onsite interview?Hello, did the technical interview involve white board coding or is it not really that style of interview? Thanks!

8 Dec 2018
 You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are asked to find out the minimum amount of weighings necessary to identify the heavier ball.3 AnswersThe most logical way to do this, is by halving the balls into 2 x 4s. Put each half on each side of a scale, the half that is heavier will contain the heaviest ball, half the heaviest side again and repeat the process until you have one ball on each side of the scale and you find the heaviest ball, this should take only 3 attempts. If anyone has a better answer, please share :)It can be done in two steps, if you divide into 3-3-2 groups. If the 3-3 measures equal, than the heavier is between the two left, and it's just one more step. If one of the 3s is heavier measure two of that group, if they are equal then the third is the heavier, otherwise you have found it on the balance.Incredible that interviewers are still asking this well known brain teaser!

20 Jun 2019
 Balancing a binary tree3 AnswersDerived technique from AVL treesMay I ask if there is OOP design?Does the interview involve white board coding? Thanks!

31 Aug 2012
 Java problem:.An integer number was given and you had to write a function that would return the unique numbers of the number e.g. 156->3, 155->2.3 Answersimport java.util.Arrays; public class numberOfNumbers { public static void main(String args[]) { int input = 23444550; int differentNumbers[] = new int[10]; int counter = 1; while (input != 0) { int x = input % 10; if (!isInArray(differentNumbers, x)) { differentNumbers[counter - 1] = x; counter++; } input = input/10; } System.out.println(counter); System.out.println(Arrays.toString(differentNumbers)); } public static boolean isInArray(int[] a, int x) { for (int i = 0; i < a.length; i++) { if (a[i] == x) return true; } return false; } }#include #include int uniqueNumCount(int num) { unordered_set uniqueNum; while(num) { int digit = num%10; num = num/10; uniqueNum.insert(digit); } return uniqueNum.size(); } int main() { int num = 123; cout << "Unique number in:" << num <<" is " << uniqueNumCount(num) << endl; num = 122; cout << "Unique number in:" << num <<" is " << uniqueNumCount(num) << endl; return 0; } One or more comments have been removed. Please see our Community Guidelines or Terms of Service for more information.

10 Aug 2017
 OO features: polymorhism, encapsulation. inheritance and abstraction2 Answersexplained with real life examples.There's a lot of elements to typically cover in these questions, clarifications, scoping, making sure you're answering the actual question the interviewer is looking for you to answer, etc. Could be worth doing a mock interview with one of the Prepfully FactSet Graduate Software Engineer experts... they've worked in the role so they clearly know how to get through the interview. prepfully.com/practice-interviews

20 Mar 2018
 Telephone Interview Q: What is a 202 Response Code?2 AnswersExplained the definition of the that particular HTML response code.When did you receive an offer ?
110 of 1,165 Interview Questions