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

SDE - 2

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: DBMS, Sorting Algorithms, SDLC, Computer Networks, Basics of DSA
Tip
Tip

Tip 1 : Make sure what you have learnt in DSA you can do it practically by writing codes.
Tip 2 : Must have a hands-on experience in writing SQL commands.
Tip 3 : Do atleast 3-4 projects so that you have an option to explain any one of them if the interviewer asks.

Application process
Where: Campus
Eligibility: Above 6.75 CGPA, No running backlogs
Resume Tip
Resume tip

Tip 1 : Write only true data in resume. Don't bluff as you may get caught which will be very embarrassing.
Tip 2 : Have some latest technology related projects in your resume.

Interview rounds

01
Round
Hard
Online Coding Test
Duration360 minutes
Interview date9 Aug 2020
Coding problem1

Timing- Any 6 hours of my choice in the 24 hour window. (10:00 p.m. to 4:00 a.m. I selected)
Environment was very friendly and easy to use.
No significant activity.
This was the only coding round.

1. Prime time again

Moderate
25m average time
60% success
0/80
Asked in companies
Tata Consultancy Services (TCS)InfosysTata Consultancy Services (TCS)

You have been given two integers ‘DAY_HOURS’ and ‘PARTS’. Where ‘DAY_HOURS’ is the number of hours in a day and a day can be divided into ‘PARTS’ equal parts. Your task is to find total instances of equivalent prime groups. Prime group refers to the group of elements (hours) which are prime and measure the same equivalent time since the start of the day.

For example, if we consider ‘DAY_HOURS’ to be 24 and ‘PARTS’ to be 2, then the day of total 24 hours is divided into 2 parts ( 1 - 12 ) and ( 13 - 24 ). 5 hours in the first part of the day is equivalent to 17, which is 5 hours into the second part of the day. And since 5 and 17 both are prime, they can be considered as a prime group.

Note:
1. Day starts with hour 1 and ends with hour  ‘DAY_HOURS’.

2. Each hour of the prime group should be in a different part of the day.

3. If there is no prime group then return zero.

4. ‘DAY_HOURS’ should be divisible by ‘PARTS’, meaning that the number of hours per part (DAY_HOURS/PARTS)  should be a natural number.

Example:

Let ‘DAY_HOURS’ = 20  and ‘PARTS’ = 2

Hence the view of our day would be in the following format: 

1  2  3  4  5  6  7  8  9 10      -  Part 1
11 12 13 14 15 16 17 18 19 20     -  Part 2

 1-11  Not a prime group because 1 is not prime.
 2-12  Not a prime group because 12 is not prime.
 3-13  Because both 3 and 13 are prime, it is an equivalent prime group.
 4-14  Not a prime group because 4 and 14 are not prime.
 5-15  Not a prime group because 15 is not prime.
 6-16  Not a prime group, because 6 and 16 are not prime.
 7-17  Because both 7 and 17 are prime, it is an equivalent prime group.
 8-18  Not a prime group, because 8 and 18 are, is not prime.
 9-19  Not a prime group because 9 is not prime.
 10-20 Not a prime group because both 10 and 20 are not prime.

 Hence there are 2 equivalent prime groups in the above format which are 3-13 and 7-17.
Problem approach

Step1:First we had to decide whether the user enters valid parts which can occur in a day according to our question.
Step 2:Search for the prime time and valid times which can occur in the clock for the given range.
Step 3: Print the next valid time otherwise print 0.

Try solving now
02
Round
Easy
Telephonic
Duration10-15 minutes
Interview date10 Sep 2020
Coding problem1

Timing- 12:15 p.m. 
Environment was very good .
Not any significant activity.
The interviewer was very friendly and talked like friends.

1. DBMS Questions

1) A table was shown to me and I was asked to write a query for displaying unique elements.
2) What is RDBMS ?
3) Difference between MySql & NoSql.

Problem approach

Tip 1 : Do practice SQL queries.
Tip 2 : Must have theoretical knowledge of DBMS.
Tip 3 : Read SDLC Waterfall Model thoroughly

03
Round
Medium
HR Round
Duration20 minutes
Interview date10 Sep 2020
Coding problem1

Timing- 12:30 p.m. to 12:45 p.m
Environment was very comfortable.
No other significant activity.
Interviewer was very good and talking very politely & friendly.

1. HR Discussion

Problem approach

Tip 1 : Make you you know the history, work culture and CEO of whichever company you are going for the interview.
Tip 2 : Tell optimistic answers so that they are impressed.
Tip 3 : My approach was very normal & I gave answers to the point.

Here's your problem of the day

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

Skill covered: Programming

Which operator is used for exponentiation in Python?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
819 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
1442 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
987 views
1 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
769 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
8257 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Arcesium
1369 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
1248 views
0 comments
0 upvotes