Tesco interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Tesco
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2.5 months
Topics: Data structures, Algorithms, OS, OOPs, DBMS
Tip
Tip

Tip 1 : Code as many questions as you can,
Tip 2 : Take care of small things like freeing memory in case we want to delete node from linked list.
 

Application process
Where: Campus
Eligibility: 6-7 CGPA
Resume Tip
Resume tip

Tip 1 : Have some programming project on resume.
Tip 2 : Not that important for this interview.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration75 minutes
Interview date1 Aug 2018
Coding problem2

1. Puzzle Question

The question was that there are n bombs having some sizes. In the subsequent time - top two stones collide with each other, the smaller stone is destroyed completely and bigger stone's size is reduced by size of smaller stone. What will be the size of last stone.

2. Height of Binary Tree

Easy
15m average time
80% success
0/40
Asked in companies
GrabBarclaysAmazon

The height of a tree is equal to the number of nodes on the longest path from the root to a leaf.


You are given an arbitrary binary tree consisting of 'n' nodes where each node is associated with a certain value.


Find out the height of the tree.


Example :
Input: Let the binary tree be:

Output: 2

Explanation: The root node is 3, and the leaf nodes are 1 and 2.

There are two nodes visited when traversing from 3 to 1.
There are two nodes visited when traversing from 3 to 2.

Therefore the height of the binary tree is 2.
Problem approach

Used the above approach for a general tree.

Try solving now
02
Round
Easy
Face to Face
Duration40 minutes
Interview date5 Aug 2018
Coding problem2

The interviewer was very friendly. He even asked me to address him by his first name to get me comfortable. He first talked about my life before JEE and about the stuff I did in college apart from academics. Then he came straight to the questions. He asked me the same questions from online test and then this question:

Find the square root of a number. 
Told him the binary search solution and he was satisfied.

Asked one OS question too which I was not able to answer.

1. Maximum Height Tree

Hard
60m average time
20% success
0/120
Asked in companies
BNY MellonOracleDirecti

You are given a tree with ‘N’ nodes and ‘N-1’ edges. Your task is to determine the tree's maximum height when we consider any arbitrary node as a root.

For Example:
N = 4
Edges = [2 3], [4 3], [1 3]

Output: 2

Here node 4 is at a distance 2 from node 1 and if we make node 1 as a root, it will give the height of 2, which is the maximum possible in this tree.
Problem approach

I told him that DFS is better if the tree is wide but height is less.
BFS is better if tree has a less width.

The difference is only in space complexities in the 2 approaches.

Try solving now

2. Square Root

Easy
15m average time
80% success
0/40
Asked in companies
SamsungAmazonMicrosoft

You are given a positive integer ‘n’.


Your task is to find and return its square root. If ‘n’ is not a perfect square, then return the floor value of sqrt(n).


Example:
Input: ‘n’ = 7

Output: 2

Explanation:
The square root of the number 7 lies between 2 and 3, so the floor value is 2.


Try solving now
03
Round
Easy
Face to Face
Duration30 minutes
Interview date5 Aug 2018
Coding problem1

This interview was not in a room, we were standing in the corridor and he started it there only.
Asked me about how the previous interview went.
 

1. Technical Questions

Why should I hire you?

If I give you a project on pascal , would you agree to take it?

What is your goal in life?

What are your strengths and weaknesses?

 

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
Software Development
3 rounds | 4 problems
Interviewed by Tesco
0 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8518 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3320 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2580 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15480 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15338 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10142 views
2 comments
0 upvotes