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

Software Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Algorithms, Dynamic Programming, Quantitative Aptitude, Logical Reasoning, Verbal Ability
Tip
Tip

Tip 1 : Practice at least 100 questions on Leetcode. 
Tip 2 : Practice a variety of questions from different topics and of different levels : easy, medium and hard.
Tip 3 : Make sure to craft your resume such that your projects, and achievements stand out.

Application process
Where: Campus
Eligibility: 7 CGPA, Not more than one backlog
Resume Tip
Resume tip

Tip 1 : Have some projects on your resume
Tip 2 : Tailor your resume according to the role you are applying for. Don't just stick a generic resume everywhere.
For example, if you are applying for Data Analyst or Machine Learning Engineer, then the resume should 
highlight the skills related to that domain.
Tip 3 : Keep your resume real and honest. Don't over exaggerate anything as the interviewer asks questions based 
on your resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 Minutes
Interview date9 Oct 2020
Coding problem2

It was an online take-from-home test. It was a 180 mins duration test. It consisted of Quantitative Aptitude, Verbal Ability, Logical Reasoning, Programming Fundamentals sections in MCQ format along with Coding section consisting of two programming questions.

1. Nth Fibonacci Number

Easy
0/40
Asked in companies
IBMSAP LabsAccenture

The n-th term of Fibonacci series F(n), where F(n) is a function, is calculated using the following formula -

    F(n) = F(n - 1) + F(n - 2), 
    Where, F(1) = 1, F(2) = 1


Provided 'n' you have to find out the n-th Fibonacci Number. Handle edges cases like when 'n' = 1 or 'n' = 2 by using conditionals like if else and return what's expected.

"Indexing is start from 1"


Example :
Input: 6

Output: 8

Explanation: The number is ‘6’ so we have to find the “6th” Fibonacci number.
So by using the given formula of the Fibonacci series, we get the series:    
[ 1, 1, 2, 3, 5, 8, 13, 21]
So the “6th” element is “8” hence we get the output.
Problem approach

1. I created an array arr[] of size N.
2. I initialized arr[0] = 0, arr[1] = 1.
3. I iterated over [2, N] and updated the array arr[] as: arr[i] = arr[i-2] + arr[i-1]
4. I printed the value of arr[N]

Try solving now

2. Zigzag Binary Tree Traversal

Easy
10m average time
90% success
0/40
Asked in companies
Goldman SachsAmazonFlexiEle Consulting Services (FE)

You are given a ‘Binary Tree’.


Return the level-order traversal of the Binary Tree.


Example:
Input: Consider the following Binary Tree:

Example

Output: 
Following is the level-order traversal of the given Binary Tree: [1, 2, 3, 5, 6, 4]


Problem approach

I used a queue just like we use in Level Order Traversal. But in this case, I also maintained a flag variable which keeps track of alternate levels to reverse the order of the corresponding level traversal. flag==true implies that values have to be inserted from left to right and flag==false means that the element has to be inserted from right to left in our answer arraylist.

Try solving now
02
Round
Easy
Video Call
Duration30 minutes
Interview date21 Oct 2022
Coding problem1

This was held on Google Meet as a video call. This was the technical round. The questions asked were mostly from my ML projects and a few questions on Java and Python and DSA. The interviewer was satisfied with my answers.

1. Reverse String

Moderate
0/80
Asked in companies
Info Edge India (Naukri.com)Livekeeping (An IndiaMART Company)IBM

You are given a string ‘S’. You are also given ‘M’ integers in an array ‘A’. You perform ‘M’ operations on this string. The operations are given in an array ‘A’ of size ‘M’.

You perform the operations in the order they appear in the array ‘A’. In the ‘i’th operation, you reverse the substring of ‘S’ from the position ‘A[i]’ to ‘len(S)’ - ‘A[i]’ - 1 (0 based).

Your task is to find the string after performing all the operations.

Example :
‘S’ = “aabcd”, ‘M’ = 2, ‘A’ = [0, 1]
After 1st operation i.e, reversing from [0, 4], ‘S’ = “dcbaa”.
After 2nd operation i.e, reversing from [1, 3], ‘S’ = “dabca”.
Hence, the answer is “dabca”.
Problem approach

1. Create a temporary byte[] of length equal 
to the length of the input string.
2. Store the bytes (which we get by using 
getBytes() method) in reverse order into 
the temporary byte[] .
3. Create a new String abject using byte[] to
store result.

Try solving now
03
Round
Easy
HR Round
Duration10 minutes
Interview date23 Oct 2022
Coding problem1

In this round, the questions asked were related to the cultural fit, company values alignment and relocation and location preferences. The HR asked me about how I see myself in next 5 years, what are my strengths and weaknesses, why should they hire me and am I willing to relocate or not. The HR was satisfied with my answers.

1. Basic HR Questions

What are your strengths and weaknesses?

Problem approach

Tip 1: State at least five of each
Tip 2: State your weaknesses such that it seems like a strength in some way. Don't tell any weakness which 
will be a red flag for the company's values and ethics.

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 Developer
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1744 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1638 views
0 comments
0 upvotes
company logo
Software Developer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1632 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
3 rounds | 3 problems
Interviewed by HCL Technologies
3361 views
1 comments
0 upvotes
company logo
Software Developer
3 rounds | 6 problems
Interviewed by Arcesium
1672 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 5 problems
Interviewed by HCL Technologies
4024 views
0 comments
0 upvotes