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

Software Engineer Trainee

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

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: OOPS, Data Struc and Algo, Opreating System, DBMS, Networking
Tip
Tip

Tip 1 : be confident
Tip 2 : add anything relevant in the resume
Tip 3 : be clear with basics

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : use proper format
Tip 2 : use one page resume

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date15 Jan 2022
Coding problem2

it was 2 hr round containing 30 mcq's and 2 coding ques.

1. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
SamsungSterlite Technologies LimitedGrab

You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols and whitespaces.

Note :

String 'S' is NOT case sensitive.

Example :

Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Try solving now

2. Merge Two Sorted Linked Lists

Moderate
15m average time
80% success
0/80
Asked in companies
AmazonAppleGoldman Sachs

You are given two sorted linked lists. You have to merge them to produce a combined sorted linked list. You need to return the head of the final linked list.

Note:

The given linked lists may or may not be null.

For example:

If the first list is: 1 -> 4 -> 5 -> NULL and the second list is: 2 -> 3 -> 5 -> NULL

The final list would be: 1 -> 2 -> 3 -> 4 -> 5 -> 5 -> NULL
Problem approach

For simplicity, we create a dummy node to which we attach nodes from lists. We iterate over lists using two-pointers and build up a resulting list so that values are monotonically increased.

Try solving now
02
Round
Easy
Video Call
Duration30 minutes
Interview date19 Jan 2022
Coding problem2

it was a 30 minutes round held on 11:00 AM, he asked my intro, technical skills, projects, family background.

1. Reverse the String

Easy
15m average time
85% success
0/40
Asked in companies
ThalesDeutsche BankPaytm (One97 Communications Limited)

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Problem approach

One pointer is pointing at the start of the string while the other pointer is pointing at the end of the string. Both pointers will keep swapping its element and travel towards each other. The algorithm basically simulating rotation of a string with respect to its midpoint.

Try solving now

2. Factorial of a Number

Easy
0/40
Asked in companies
Tata Consultancy Services (TCS)Paytm (One97 Communications Limited)HCL Technologies

Write a program to find the factorial of a number.

Factorial of n is:

n! = n * (n-1) * (n-2) * (n-3)....* 1

Output the factorial of 'n'. If it does not exist, output 'Error'.

Problem approach

Factorial can be calculated using following recursive formula. 
n! = n * (n-1)!
n! = 1 if n = 0 or n = 1

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
SDE - 1
2 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1595 views
3 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
2957 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
5201 views
1 comments
0 upvotes
company logo
TCS Ninja
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
1447 views
0 comments
0 upvotes