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

Associate Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, Algorithms, Aptitude, Java, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio.

Tip 3 : Do at least 2 good projects and you must know every bit of them.


 

Application process
Where: Referral
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Have at least 2 good projects explained in short with all important points covered.

Tip 2 : Every skill must be mentioned.

Tip 3 : Focus on skills, projects and experiences more.


 

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date24 Dec 2020
Coding problem1

My exam timing was in the evening. The first round was an MCQ round, after clearing the first round there was a coding round followed by an interview after result declaration.

1. Merge Two Sorted Arrays

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonOlaTata Consultancy Services (TCS)

Ninja has been given two sorted integer arrays/lists ‘ARR1’ and ‘ARR2’ of size ‘M’ and ‘N’. Ninja has to merge these sorted arrays/lists into ‘ARR1’ as one sorted array. You may have to assume that ‘ARR1’ has a size equal to ‘M’ + ‘N’ such that ‘ARR1’ has enough space to add all the elements of ‘ARR2’ in ‘ARR1’.

For example:

‘ARR1’ = [3 6 9 0 0]
‘ARR2’ = [4 10]
After merging the ‘ARR1’ and ‘ARR2’ in ‘ARR1’. 
‘ARR1’ = [3 4 6 9 10]
Problem approach

Declare two variables ‘i’ and ‘j’ and initialize ‘i’ with ‘M’ and ‘j’ with ‘N’. Then we compare the last element of both arrays/lists and we insert the larger element to the end of the ‘ARR1’. We continue this process while all the elements of ‘ARR2’ are not merged into ‘ARR1’. 

Try solving now
02
Round
Easy
Face to Face
Duration45 minutes
Interview date29 Dec 2020
Coding problem2

In this round, I was asked 2 coding questions - one from recursion and another one from sorting. This was followed by some questions from OOPs.

1. Partition Equal Subset Sum

Moderate
25m average time
65% success
0/80
Asked in companies
AdobeAmazonOla

You are given an array 'ARR' of 'N' positive integers. Your task is to find if we can partition the given array into two subsets such that the sum of elements in both subsets is equal.

For example, let’s say the given array is [2, 3, 3, 3, 4, 5], then the array can be partitioned as [2, 3, 5], and [3, 3, 4] with equal sum 10.

Follow Up:

Can you solve this using not more than O(S) extra space, where S is the sum of all elements of the given array?
Problem approach

We have two choices whether to include that element in the sum or exclude that element. 

Now if we choose the current number to add to the sum then recur for index 'I'+1  

If we don’t choose the current index element to sum then recur for index 'I'+1 and this way we check if there is a subset with sum 'TOTALSUM'/2 in the given array. 


 

Try solving now

2. K Largest Element

Moderate
10m average time
90% success
0/80
Asked in companies
Tata Consultancy Services (TCS)AmazonWalmart

You are given an unsorted array containing ‘N’ integers. You need to find ‘K’ largest elements from the given array. Also, you need to return the elements in non-decreasing order.

Problem approach

Sort the whole array in decreasing order and take out the first ‘K’ elements one by one to return as the answer.

Try solving now

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
Associate Software Engineer
2 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1339 views
0 comments
0 upvotes
company logo
Associate Software Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
5153 views
1 comments
0 upvotes
company logo
Associate Software Engineer
2 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1172 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
680 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
4 rounds | 5 problems
Interviewed by Accenture
3923 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 2 problems
Interviewed by Ernst & Young (EY)
2657 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 15 problems
Interviewed by Ernst & Young (EY)
2338 views
0 comments
0 upvotes