Graduate Engineer Trainee Interview Questions & Answers
40 questions for Graduate Engineer Trainee interviews — 27 easy, 13 medium.
About the Graduate Engineer Trainee role
Graduate engineer trainees are hired in large batches by IT services and consulting firms through aptitude and coding assessments. Coding sections test basic to medium DSA problems such as arrays, strings, sorting, searching and simple recursion. After training they work on client projects in development, testing or support. Higher-paying digital or specialist tracks within these companies use harder DSA rounds, so strong preparation improves the offer.
Check whether a string of brackets is valid.
Show answer
Merge two sorted linked lists into one sorted list.
Show answer
What is backtracking?
Show answer
What are a queue, a deque and a circular queue?
Show answer
Check whether a string is a palindrome, ignoring case and non-alphanumeric characters.
Show answer
Compute the integer square root of a number using binary search.
Show answer
Describe a time you got stuck during a coding interview or contest. How did you recover?
Show answer
Your brute-force solution for the longest substring without repeating characters is O(n cubed). How would you improve it?
Show answer
Solve two sum: return the indices of two numbers that add up to the target.
Show answer
How does heap sort work and how does it compare with quicksort and merge sort?
Show answer
Tell me about yourself for a software engineer role.
Show answer
How does binary search work and what does it require?
Show answer
Implement Kadane's algorithm for the maximum subarray sum.
Show answer
An array of size 100000 must answer 100000 queries asking for the sum between two indices. What approach would you use?
Show answer
Find the next greater element for every element of an array.
Show answer
Strings are immutable in Java and Python. How does that affect algorithm complexity?
Show answer
Describe a team project where one member was not contributing. What did you do?
Show answer
Print the level order traversal of a binary tree, one list per level.
Show answer
How would you check whether two strings are anagrams, and what changes if input can contain any Unicode characters?
Show answer
A warehouse robot moves only right or down on a grid with some blocked cells. How do you count the number of paths?
Show answer
How would you implement browser back and forward navigation?
Show answer
A sorted array has been rotated at an unknown point. How can you still search it in O(log n)?
Show answer
How can you implement a queue using two stacks, and what is its complexity?
Show answer
Write recursive Fibonacci and then optimise it with memoisation.
Show answer
What is the two pointer technique and when is it used?
Show answer
What are the ways to represent a graph and when would you use each?
Show answer
What is the difference between a linked list and an array?
Show answer
A satellite image is a grid of land and water cells. How do you count the islands?
Show answer
A learning platform has courses with prerequisites. How do you find a valid order, and what if none exists?
Show answer
Write an iterative binary search that returns the index of a target or -1.
Show answer
What is a stack and where is it used?
Show answer
What is the difference between a subarray, a subsequence and a substring?
Show answer
Solve climbing stairs: how many ways are there to climb n steps taking 1 or 2 steps at a time?
Show answer
Compare singly, doubly and circular linked lists.
Show answer
Why are you looking for a change from your current job?
Show answer
Implement merge sort.
Show answer
A bug appeared somewhere in the last 1000 commits. How would you find the commit that introduced it quickly?
Show answer
You are building undo and redo for a text editor. Which data structures would you use?
Show answer
What is a dummy or sentinel node and why is it useful in linked list problems?
Show answer
Frequently asked questions
What does a Graduate Engineer Trainee do?
Graduate engineer trainees are hired in large batches by IT services and consulting firms through aptitude and coding assessments. Coding sections test basic to medium DSA problems such as arrays, strings, sorting, searching and simple recursion. After training they work on client projects in development, testing or support. Higher-paying digital or specialist tracks within these companies use harder DSA rounds, so strong preparation improves the offer.
Which skills are tested in a Graduate Engineer Trainee interview?
Expect questions on Basic DSA, Sorting and searching, Aptitude, Any one language, Debugging. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a Graduate Engineer Trainee interview?
Revise Arrays, Strings and Hashing, Sorting, Searching and Backtracking, Linked Lists, Stacks and Queues first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.