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
2 rounds | 2 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 200 questions from Leetcode and Hackerrank
Tip 2 : Practice variety of questions from different topics and wo medium and hard difficulty level.
Tip 3 : Do at least 2 projects to be mentioned in your resume.

Application process
Where: Campus
Eligibility: 6.5 CGPA and above, not more than one backlog (which has to be cleared before joining TCS)
Resume Tip
Resume tip

Tip 1: Have some projects on your resume
Tip 2: Craft your resume according to the role for which you are applying

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date9 Oct 2020
Coding problem1

The first round was an online take-from-home test with MCQs on Quants, Logical Reasoning, Verbal Ability and two advanced coding questions section at the end. We were given a few window slots during which we could take the test for 180 minutes. The test was of medium difficulty level and I was able to clear the test.

1. Spiral Order Traversal of a Binary Tree

Easy
20m average time
75% success
0/40
Asked in companies
MicrosoftCiscoArcesium

You have been given a binary tree of 'N' nodes. Print the Spiral Order traversal of this binary tree.

For example
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
    1
   / \
  2   3
     / \
    4   5

Output: 1 3 2 4 5
Problem approach

Step 1: I used a queue for Level Order Traversal. 
Step 2: I used a flag variable which keeps track of alternate levels to reverse the order of the corresponding level traversal.
Step 3: flag==true implies we have to insert from left to right and flag==false means we have to insert an element from right to left our answer ArrayList.

Try solving now
02
Round
Medium
Video Call
Duration40 minutes
Interview date11 Nov 2020
Coding problem1

The second round was a video call interview round which consisted of two sub-rounds, that is, the technical round and the HR round. The technical round consisted of coding questions and questions from my projects. The HR round consisted of cultural fit and behavioural questions. I was able to satisfy both the technical interviewer and HR with my responses.

1. Reverse string Word Wise

Moderate
0/80
Asked in companies
IBMHexaware TechnologiesTata Consultancy Services (TCS)

Reverse the given string word wise. That is, the last word in given string should come at 1st place, last second word at 2nd place and so on. Individual words should remain as it is.

Problem approach

Step 1: Create a temporary byte[] of length equal to the length of the input string.

Step 2: Store the bytes (which we get by using the getBytes() method) in reverse order into the temporary byte[].

Step 3: Create a new String object using byte[] to store result.

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
Software Developer
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
0 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1849 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
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