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

SDE - 1

Tata Consultancy Services (TCS)
upvote
share-icon
5 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Advanced Data Structures, OOPS, Dynamic Programming, Database Management System, Computer Networking
Tip
Tip

Tip 1 : Practice basic questions of DSA.
Tip 2 : Must have minimum 2 good projects in latest technologies like AI & ML.
Tip 3 : One should know the Sql commands.

Application process
Where: Campus
Eligibility: Above 6.75 CGPA and no current backlogs
Resume Tip
Resume tip

Tip 1 : Do not bluff and write only things which you are completely aware about.
Tip 2 : Internships would be good for resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration150 Minutes
Interview date28 Oct 2020
Coding problem1

Timing was 9:00 a.m. to 12:00p.m.
The environment was very user friendly.
No significant activity was observed.
The interviewer was being very friendly and was talking openly just like friends.

1. Jar of Candies

Easy
20m average time
80% success
0/40
Asked in companies
OlaAdobeTata Consultancy Services (TCS)

There is a jar full of candies for sale at a mall counter. Jar has the capacity ‘N’. That is, jar can contain maximum ‘N’ candies when a jar is full. At any point in time jar can not have 0 or fewer candies.

Given the number ‘K’, the number of candies the customer wants. Your task is to return the candies left in the jar.

Note:

If 'K' is greater than 'N', return -1 denoting the invalid order.

For example:

Given if 'N' = 10, 'K' = 5. Then 5 candies are left in the jar after the event.
Try solving now
02
Round
Medium
Online Coding Test
Duration60 minutes
Interview date12 Nov 2020
Coding problem2

Timing was 4:00 p.m. to 5:00 p.m.
Environment was very good.
No other significant activity was seen.
There were no interviewer for this round as this was just a coding round.

1. Shuffle Two Strings

Hard
50m average time
50% success
0/120
Asked in companies
Tata Consultancy Services (TCS)AccentureLinkedIn

You are given three strings “A”, “B” and “C”. Your task is to check whether “C” is formed by an interleaving of A and B. C is said to be interleaving “A” and “B”, if the length of “C” is equal to the sum of the length of A and length of B, all the characters of “A” and “B” are present in “C”, and the order of all these characters remains the same in all three strings.

For Example:
If A = “aab”, B = “abc”, C = “aaabbc”
Here C is an interleaving string of A and B. Because C contains all the characters of A and B and the order of all these characters is also the same in all three strings.

interleaving

If A = “abc”, B = “def”, C = “abcdefg”
Here C is not an interleaving string of A and B as neither A nor B contains the character ‘g’.
Try solving now

2. Diagonal Sum

Easy
23m average time
75% success
0/40
Asked in companies
SamsungMicrosoftAmazon

Given a Binary Tree of 'N' nodes, find and print a list containing the sums of all the diagonals. When calculating the sum of each diagonal, consider the diagonals from right to left.

Diagonals of the binary tree are :

alt-text

There are three diagonals :

Diagonal 1 : 8 10 14

Diagonal 2 : 3 6 7 13

Diagonal 3 : 1 4

Example :

For the given binary tree : 

alt-text

Output : 24 14 2

Explanation: Rightmost diagonal contains elements {5, 10 , 9} its sum is 24, middle diagonal contains elements {6, 3, 5} its sum is 14, leftmost diagonal contains elements {2}. Thus the answer should be “24 14 2”.
Try solving now
03
Round
Easy
Video Call
Duration15 minutes
Interview date25 Nov 2020
Coding problem1

Timing was 12:30 p.m. to 12:45 p.m.
Environment was very good.
No other significant activity was monitored.
The interviewer seemed to have been focused on DSA and technical topics.

1. DBMS Questions

Write a query for updating an entity in the table as primary entity.
What is the difference between drop and truncate.

04
Round
Easy
Video Call
Duration15 minutes
Interview date13 Dec 2020
Coding problem1

Timing 1:00 p.m. to 1:20 p.m.
The environment was very good.
No significant activity.
The interviewer was asking questions from the project site which the candidate would we working if selected and also about the working conditions.

1. Puzzle

How would you cut a cake in 3 pieces in 3 times ?

05
Round
Easy
HR Round
Duration20 minutes
Interview date14 Dec 2020
Coding problem1

Timing was 1:00 p.m. to 1:20 p.m.
The environment was very good and productive.
No other significant activity.
The interviewer was very good.

1. Basic HR Questions

Can you describe your time management skills? 

What’s your absenteeism record like? 

Can I trust you with responsibilities?

Problem approach

Tip 1 : I gave honest answer to this as I knew that in this serious condition company would take care of it's employees.
Tip 2 : So I told them that if my project requires me to be there, then I will be there.
Tip 3 : For the U.S. based client I said that I am ok in working at night.

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
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
1841 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1283 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Tata Consultancy Services (TCS)
1473 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1594 views
3 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6240 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Accenture
2487 views
0 comments
0 upvotes