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

Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: OOPS in java, Joins in Database, Normalization, loops, Array, About Database, difference in C and C++ , difference in C++ and java, Views in Database, What is Schema
Tip
Tip

Tip 1 : Choose your favourite language as primary language for interview.
Tip 2 : Give answers with full confident and try to give examples. And make any project.
Tip 3 : If you don't know any answer then say I don't know it. Don't give the wrong answers.

Application process
Where: Other
Eligibility: atleast 6 CGPA
Resume Tip
Resume tip

Tip 1 : Have one or two projects at least in resume.
Tip 2 : Mention only those things which you know. Don't put false info in resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date11 Aug 2020
Coding problem1

1. Chocolate Problem

Moderate
15m average time
85% success
0/80
Asked in companies
AdobePaytm (One97 Communications Limited)JP Morgan

Given an array/list of integer numbers 'CHOCOLATES' of size 'N', where each value of the array/list represents the number of chocolates in the packet. There are ‘M’ number of students and the task is to distribute the chocolate to their students. Distribute chocolate in such a way that:

1. Each student gets at least one packet of chocolate.

2. The difference between the maximum number of chocolate in a packet and the minimum number of chocolate in a packet given to the students is minimum.

Example :

Given 'N' : 5 (number of packets) and 'M' : 3 (number of students)

subsequence

And chocolates in each packet is : {8, 11, 7, 15, 2}

All possible way to distribute 5 packets of chocolates among 3 students are -

( 8,15, 7 ) difference of maximum-minimum is ‘15 - 7’ = ‘8’
( 8, 15, 2 ) difference of maximum-minimum is ‘15 - 2’ = ‘13’ 
( 8, 15, 11 ) difference of maximum-minimum is ‘15 - 8’ = ‘7’
( 8, 7, 2 ) difference of maximum-minimum is ‘8 - 2’ = ‘6’
( 8, 7, 11 ) difference of maximum-minimum is ‘11 - 7’ = ‘4’
( 8, 2, 11 ) difference of maximum-minimum is ‘11 - 2’ = ‘9’
( 15, 7, 2 ) difference of maximum-minimum is ‘15 - 2’ = 13’
( 15, 7, 11 ) difference of maximum-minimum is ‘15 - 7’ = ‘8’
( 15, 2, 11 ) difference of maximum-minimum is ‘15 - 2’ = ‘13’
( 7, 2, 11 ) difference of maximum-minimum is ‘11 - 2’ = ‘9’

Hence there are 10 possible ways to distribute ‘5’ packets of chocolate among the ‘3’ students and difference of combination (8, 7, 11) is ‘maximum - minimum’ = ‘11 - 7’ = ‘4’ is minimum in all of the above.
Problem approach

step 1 : enter the size of array
step 2 : define all elements 0 to array
step 3 : define new variable j and enter the elements until a[j]!=0
step 4 : print the array

Try solving now
02
Round
Easy
Telephonic
Duration20 minutes
Interview date8 Oct 2020
Coding problem1

1. Technical Questions

what is database and DBMS
What is normalization
What is views
What is semaphores

03
Round
Easy
HR Round
Duration20 Minutes
Interview date8 Oct 2020
Coding problem1

1. Basic HR Questions

Are you able to reallocate and can work in Night shifts
show your documents
about my projects

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
Software Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1640 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1460 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
1091 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3195 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2574 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes