Tata consultancy private limited interview experience Real time questions & tips from candidates to crack your interview

Java Developer

Tata consultancy private limited
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Core Java, Spring boot, hibernate, Reactjs, Collections, Stream Api, lambada etc
Tip
Tip

Tip 1 : be excellent in core Java 
Tip 2 : learn at least one frame work 
Tip 3 : prepare for screen share dsa code session practice on hackerrank

Application process
Where: Other
Eligibility: 2 years of experience in
Resume Tip
Resume tip

Tip 1 : write correct information about your skills
Tip 2 : explain your project and technology you have used

Interview rounds

01
Round
Medium
Face to Face
Duration45 minutes
Interview date14 Apr 2022
Coding problem2

It's ds plus core Java and spring boot hibernate question and at the end some mysql question.

1. Diagonal Sum

Easy
23m average time
75% success
0/40
Asked in companies
SamsungMicrosoftAmazon

Given a Binary Tree of 'N' nodes, find and print a list containing the sums of all the diagonals. When calculating the sum of each diagonal, consider the diagonals from right to left.

Diagonals of the binary tree are :

alt-text

There are three diagonals :

Diagonal 1 : 8 10 14

Diagonal 2 : 3 6 7 13

Diagonal 3 : 1 4

Example :

For the given binary tree : 

alt-text

Output : 24 14 2

Explanation: Rightmost diagonal contains elements {5, 10 , 9} its sum is 24, middle diagonal contains elements {6, 3, 5} its sum is 14, leftmost diagonal contains elements {2}. Thus the answer should be “24 14 2”.
Try solving now

2. String Sort

Moderate
30m average time
70% success
0/80

You are given ‘N’ strings, and you would like to sort them in lexicographical order (A string 'S' is lexicographically ordered before 'T' if 'S' occurs before 'T' in the English dictionary i.e alphabetical ordering).

However, you cannot swap or change the positions of any strings. The only operation you can do is reverse some of the strings. Each string has a cost associated with it, and reversing a string ‘Str[i]’ costs ‘Cost[i]’ rupees.

Calculate the minimum cost required to make all the strings lexicographically ordered, or report that it is impossible by printing -1.

For example :

 If the strings are [‘ba’, ‘ac’] and the cost array is [3,2], reversing the second string costs ‘2’ rupees and sorts the strings. It can be proved that this is the least possible cost that can be achieved. 
Try solving now
02
Round
Easy
HR Round
Duration10 minutes
Interview date16 May 2022
Coding problem1

Basic hr question salary expectation and all

1. Basic HR Questions

Why you want to join Tcs?

Where do you see yourself in 5 years?

Problem approach

Tip 1 : be confident 
Tip 2 : mostly no rejection in this round so don't worry

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is the result of len([1, 2, 3, 4])?

Choose another skill to practice
Similar interview experiences
System Engineer
2 rounds | 3 problems
Interviewed by Tata consultancy private limited
1548 views
0 comments
0 upvotes
Assistant System Engineer
2 rounds | 2 problems
Interviewed by Tata consultancy private limited
1338 views
0 comments
0 upvotes
SDE
3 rounds | 6 problems
Interviewed by Tata consultancy private limited
1645 views
0 comments
0 upvotes
PL/SQL Developer
3 rounds | 3 problems
Interviewed by Tata consultancy private limited
2310 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
Java Developer
3 rounds | 20 problems
Interviewed by Ernst & Young (EY)
9308 views
2 comments
0 upvotes
company logo
Java Developer
3 rounds | 4 problems
Interviewed by SAP Labs
3245 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
7789 views
0 comments
0 upvotes