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

Associate Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 1 Month
Topics: Python basics, DBMS, Data structure , Digital electronics, Concept of OOPS, analog electronics
Tip
Tip

Tip 1 : Suppose you're preparing for DBMS , Google interview question for DBMS and try to learn as many as you can
Tip 2 : Go through the basic , like from your textbooks 
Tip 3 : Study from sites like javapoint etc

Application process
Where: Campus
Eligibility: 60%
Resume Tip
Resume tip

Tip 1 : Mention your projects , skills , achievement 
Tip 2 : Try to customise your resume according to the job profile

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 Minutes
Interview date10 Sep 2020
Coding problem2

MCQ question were from DBMS , Aptitude, Pseudo code , 2 coding questions
Coding questions - are given below in problem statement

Total time was about 1 hour for the coding questions and for MCQ it was 90 min

1. Minimum operations to make strings equal

Moderate
10m average time
80% success
0/80
Asked in companies
Tata Consultancy Services (TCS)BillFree LabsCapegemini Consulting India Private Limited

You have been given two strings A and B consisting of lower case English letters. The task is to count the minimum number of pre-processing moves on the string A required to make it equal to string B after applying below operations:

1. Choose any index i (0 <= i < n) and swap characters a[i]  and b[i].
2. Choose any index i (0 <= i < n) and swap characters a[i]  and a[n-i-1] .
3. Choose any index i (0 <= i < n) and swap characters b[i]  and b[n-i-1] .

In one preprocess move, you can replace a character in A with any other character of the English alphabet.

Note:
1. The number of changes you make after the preprocess move does not matter.
2. You cannot apply to preprocess moves to the String B or make any preprocess moves after the first change is made.
Problem approach

The problem can be solved using Hashing. Follow the steps below to solve the problem:

Step 1) Initialize a 2D array ,say hash[][], where hash[i][j] stores the frequency of the character i present at the jth index of all the strings.

Step 2)Traverse the array:
arr[] using variable i. For every ith string encountered, count the frequency of each distinct character of the string and store it into the hash[][] array.

Step 3 )Initiate a variable:
say cntMinOp, to store the minimum count of operations required to make all the strings of the array equal

Step 4) Traverse the array:
hash[][] using variable i. For every ith column encountered, calculate the sum of the column, say Sum, the maximum element in the column, say Max, and update cntMinOp += (Sum – Max).

Finally, print the value of cntMinOp

Try solving now

2. Minimum ASCII Delete Sum for Two Strings

Moderate
0/80
Asked in company
Tata Consultancy Services (TCS)

You are given two strings, ‘str1’ and ‘str2’. Your task is to delete a few characters (possibly 0) from both strings to make the strings equal. The characters you delete must have the minimum possible sum of their ASCII values.

For Example:
You are given str1=’abc’, str2=’bcd’, Here to make the string equal, we have to delete ‘a’ from str1 and ‘d’ from str2, which will add 97 and 100 to the answer. Hence the answer is 197
Try solving now
02
Round
Medium
Face to Face
Duration25 Minutes
Interview date19 Aug 2021
Coding problem1

Interview took place around 3 pm.
They asked my introduction after that I was asked to explain my project . Basic questions about DS , DBMS , python like 
1)Difference between RDBMS and DBMS 
2) JOIN 2 TABLE using JOIN
3) difference between drop and truncate
4) difference between analog and digital electronics
5) Array, Linked list , Queue
6) binary tree

They asked me to write odd even code (You can write in any language) 

Technical and HR round were combined , so after technical round , they asked me about my family background , my college experience , and can i work from any state 

Interview experience was good

1. SQL Question

Join two tables using joins

Problem approach

SELECT table1.column1, table1.column2, table2.column1,.... 

FROM table1 

INNER JOIN table2 

ON table1.matching_column =
table2.matching_column

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
2 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1594 views
3 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
2956 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
5200 views
1 comments
0 upvotes
company logo
TCS Ninja
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
1446 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Developer
2 rounds | 2 problems
Interviewed by Cognizant
1840 views
1 comments
0 upvotes
company logo
Associate Software Developer
3 rounds | 4 problems
Interviewed by Accenture
6616 views
2 comments
0 upvotes
Associate Software Developer
2 rounds | 3 problems
Interviewed by Virtusa
0 views
1 comments
0 upvotes