Tata Consultancy Services (TCS) interview experience Real time questions & tips from candidates to crack your interview

SDE - Intern

Tata Consultancy Services (TCS)
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structures, OOPS, DBMS, Operating systems, Software Engineering
Tip
Tip

Tip 1 : Make programming fundamentals strong(C++/java).
Tip 2 : Get your concepts clear with OOPs.
Tip 3 : Experience with cutting edge technologies like machine learning, cyber security, blockchain will definitely give an edge to you over others.

Application process
Where: Campus
Eligibility: Students from Undergraduates/Postgraduates related to Engineering & Science background in any domain
Resume Tip
Resume tip

Tip 1 : Experience with cutting-edge technologies like machine learning, cyber security, blockchain will definitely give an edge to you over others.
Tip 2 :Try to include team projects into the resume.
Tip 3 : Try to include examples along with your answer

Interview rounds

01
Round
Medium
Online Coding Test
Duration360 minutes
Interview date11 Mar 2022
Coding problem2

The coding round was held on March 11, 2022. It consists of 6 coding questions. We had to solve them in 6 hours. The test window was of 24 hours. 2 questions were of the easy category, 2 were of medium and 2 were hard category, However I don't remember all the questions ,the questions which I remember are mentioned below.

1. Longest Path In Directed Graph

Moderate
30m average time
70% success
0/80
Asked in companies
Tata Consultancy Services (TCS)SalesforceCodenation

You are given a Weighted Directed Acyclic Graph (DAG) consisting of ‘N’ nodes and ‘E’ directed edges. Nodes are numbered from 0 to ’N’-1. You are also given a source node ‘Src’ in it. Your task is to find the longest distances from ‘Src’ to all the nodes in the given graph.

Return an array of ‘N’ integers where ‘ith’ integer gives the maximum distance of the node ‘i’ from the source node ‘Src’.

A Directed Acyclic Graph (DAG) is a directed graph that contains no cycles.

Note:

Print -1 if a node is not reachable from the given source node.

Example:

Consider the following DAG consists of 5 nodes and 7 edges,  Let the source node ‘Src’ be 0.

alt text

Then the maximum distance of node 0 from the source node 0 is 0. (the distance of a node from itself is always 0).
The maximum distance of node 1 from the source node 0 is 3. The path that gives this maximum distance is 0 -> 1.
The maximum distance of node 2 from the source node 0 is 10. The path that gives this maximum distance is 0 -> 2.
The maximum distance of node 3 from the source node 0 is 15. The path that gives this maximum distance is 0 -> 2 -> 3.
The maximum distance of node 4 from the source node 0 is 54. The path that gives this maximum distance is 0 -> 1 -> 4.

Thus we should print 0 3 10 15 54
Try solving now

2. Rat In a Maze All Paths

Moderate
40m average time
60% success
0/80
Asked in companies
MathworksExpedia GroupVisa

You are given a 'N' * 'N' maze with a rat placed at 'MAZE[0][0]'. Find and print all paths that rat can follow to reach its destination i.e. 'MAZE['N' - 1]['N' - 1]'. Rat can move in any direc­tion ( left, right, up and down).

Value of every cell in the 'MAZE' can either be 0 or 1. Cells with value 0 are blocked means the rat can­not enter into those cells and those with value 1 are open.

Try solving now
02
Round
Easy
Online Coding Test
Duration360 minutes
Interview date24 Mar 2022
Coding problem2

The coding round was held on March 24, 2022. It consists of 8 coding questions. We had to solve them in 6 hours. The test window was of 24 hours. 1 questions were of the easy category, 3 were of medium and 4 were of medium-hard or hard category. I remember only 2 of them.

1. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
MicrosoftCiscoArcesium

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Try solving now

2. Single Number II

Easy
15m average time
85% success
0/40
Asked in companies
ShareChatTata Consultancy Services (TCS)ZS

You are given an arbitrary array ‘arr’ consisting of N non-negative integers, where every element appears thrice except one. You need to find the element that appears only once.

Try solving now
03
Round
Easy
Video Call
Duration45 minutes
Interview date15 Apr 2022
Coding problem0

Interview was of 40-45 min. The interview was done on msteams platform. Questions were mostly based on basic dsa and a good level of oops.
Topics they asked about were class, objects, polymorphism, shallow and deep copy, abstract class, virtual function, operator overloading,
Questions were-
some questions were related to abstract class.
Difference between pure virtual function and virtual function?
Difference between friend function and friend class?
Can we overload the destructor?
syntax of operator overloading?
what is data binding?
can we call constructor from a virtual function and vice versa?
'S' in oops stands for?
difference between vector and array?
why do we use "using namespace std" in c++?
what is "std" in "using namespace std"?
what is "namespace" in "using namespace std"?
difference between stack and queue and its real life uses?

Then they asked about projects.I explained my projects then they asked why I have used that Tech stack? what are its alternatives? How can we use it in real-world problems? Is it a team project?
Problems faced during the project development? How you get rid of it?

Followed by some managerial questions like 
if your teammates are not cooperating how will you deal with it?
If your teammates are unaware of some technology and project have some deadline, how will you handle this scenario?

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 - Intern
2 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1603 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
1362 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 10 problems
Interviewed by Tata Consultancy Services (TCS)
1128 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
5201 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3675 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2643 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2320 views
0 comments
0 upvotes