Tata 1mg interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Tata 1mg
upvote
share-icon
4 rounds | 12 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2.5 months
Topics: Data Structures, DBMS , OOPS, Networking , Algorithms
Tip
Tip

Tip 1 : Lay emphasis on DBMS and SQL as those are asked a lot and you are supposed to answer instantly.
Tip 2 : Be very clear about the strengths and weaknesses of your data structures along with their use 
Tip 3 : While coding make sure you write clean code and before submitting it to the interviewer try to clean it a little it will give you a huge boost in selection.

Application process
Where: Campus
Eligibility: 7.5 Cgpa Cut
Resume Tip
Resume tip

Tip 1 : Have some good projects that you really invested your time in and have to speak for . 
Tip 2 : Dont lie about your skills on resume because you will be grilled about that

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date25 Sep 2021
Coding problem2

It was in the evening , the questions were fairly simple but covered a wide range of topics rather than depth

1. Fix BST

Hard
45m average time
40% success
0/120
Asked in companies
CognizantTata 1mgMicrosoft

You have been given a Binary Search Tree of 'N' nodes, where exactly two nodes of the same tree were swapped by mistake.


Your task is to restore or fix the BST, without changing its structure and return the root of the corrected BST.


Note:

Given BST will not contain duplicates.


Example
A Binary Search Tree (BST) whose 2 nodes have been swapped is shown below.  

example

After swapping the incorrect nodes: 

example

Follow Up
Can you do this without using any extra space? 
Problem approach

The solution is easy we have to usee inorder the same can be found on the leet code link.

Try solving now

2. Jump Game

Moderate
25m average time
75% success
0/80
Asked in companies
OracleUberTata 1mg

There is an array 'JUMP' of size 'N' which is 1-indexed and you are currently at index 1. Your goal is to reach index 'N' (end).


When you are at index 'i', you can jump a maximum length of 'JUMP[i]' which means you can make a jump of size 1 to JUMP[i]. Return true if you can reach the end otherwise false.


Example:-
N = 5
JUMP = [1,2,3,4,5]

ANSWER:- The answer should be YES as you can jump from 1st index to 2nd index, from 2nd index to 4th index, and from 4th index to 5th index.
Try solving now
02
Round
Medium
Video Call
Duration45 mins
Interview date10 Oct 2021
Coding problem3

This round was technical round 1 with the round focusing mostly on data structures. The interviewer would be surprisingly quiet and would not entertain any questions after he has said the question and asked you if you understood it .

1. Puzzle

You were given the variables : 
Total money 
Price of a chocolate 
number of wrappers to be returned for an extra chocolate 

and then maximize it.

First a verbal answer then a pseudo code and then code it in the desired language.

Problem approach

Tip 1 : Try some brain teasers from cat exams.
 

2. Puzzle

Had to guess the number of traffic lights in the city of Chandigarh since it's based on a grid pattern, and tell them the approach towards it .

Problem approach

Tip 1:Try to start with the smallest units in guestimates and then scale your answer to the extent of the question.
Tip 2: Try to be self-aware and use numbers that actually make sense and numbers that end with 0 to make calculations easier on the fly.

3. Reverse Linked List

Easy
15m average time
85% success
0/40
Asked in companies
PayPalOracleVisa
Note :
You do not need to print anything, just return the head of the reversed linked list. 
Problem approach

generic problem

Try solving now
03
Round
Medium
Video Call
Duration60 min
Interview date10 Oct 2021
Coding problem6

This round was core technical with lots of questions about dbms and os along with the coding.

1. Inorder Traversal

Easy
32m average time
0/40
Asked in companies
AmazonSwiggyVisa

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values. Your task is to return the In-Order traversal of the given binary tree.


For example :
For the given binary tree:

The Inorder traversal will be [5, 3, 2, 1, 7, 4, 6].
Try solving now

2. Two Sum

Easy
10m average time
90% success
0/40
Asked in companies
AmazonSAP LabsTata Consultancy Services (TCS)

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Problem approach

The solution can be found on leet code , can be solved in a bunch of ways but they are tricking you by giving you an easy question and seeing if you decide to optimize it or not

Try solving now

3. Path With Minimum Effort

Hard
20m average time
80% success
0/120
Asked in companies
Tata 1mgVisa

You are given heights, a 2D array of size 'rows' x 'columns', where heights[row][col] represents the height of a cell (which would contain a row and column).


You are a Ninja training for an upcoming battle. You are situated in the top-left cell, (0, 0), and you hope to travel to the bottom-right cell, (rows-1, columns-1) (i.e., 0-indexed).


You can move up, down, left, or right, and you wish to find a route that requires the minimum time. A route's time is the maximum absolute difference in heights between two consecutive cells of the route.


You must return the minimum time required to travel from the top-left cell to the bottom-right cell.


For Example:
Input: 'heights' = [[1, 8, 8],[3, 8, 9],[5,3,5]]
Output: 2

Explanation: The route of [1,3,5,3,5] has a maximum absolute difference of 2 in consecutive cells.
Problem approach

The question can be solved in python using a heap and hash map for the path .

Try solving now

4. DBMS Question

I was told to write sql queries for inner join and otuer join .

5. DBMS Question

Explaing 1 Nf 2Nf

6. Redis based Question

What is redis and what is it core functionalities since i had mentioned redis in my resume

04
Round
Easy
HR Round
Duration30 minutes
Interview date10 Oct 2021
Coding problem1

It was right after both the coding rounds

1. Basic HR questions

Normal every day being what I like my hobbies and a pleasant chat was what happened in this round no serious questions was very laid back and more than a selection round it was a round to know you more

Here's your problem of the day

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

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Tata 1mg
1260 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Tata 1mg
1306 views
0 comments
0 upvotes
company logo
SDE - 1
1 rounds | 3 problems
Interviewed by Tata 1mg
1626 views
1 comments
0 upvotes
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Tata 1mg
1074 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114453 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57719 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34914 views
7 comments
0 upvotes