TCS interview experience Real time questions & tips from candidates to crack your interview

Assistant System Engineer

TCS
upvote
share-icon
3 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures , OOPS, Trees, Graphs, Dynamic programming, Operating system
Tip
Tip

Tip 1 : Solve atleast 2 problems in the first round for getting interview call
Tip 2 : Don't copy someone else solution as they have strict plagiarism detector

Application process
Where: Company Website
Eligibility: No backlogs
Resume Tip
Resume tip

Tip 1 : Mention atleast 2 projects 
Tip 2 : Don't mention false information on the resume

Interview rounds

01
Round
Hard
Online Coding Test
Duration180 minutes
Interview date15 Mar 2022
Coding problem1

1. Co-Prime

Hard
30m average time
30% success
0/120
Asked in company
TCS

You have an integer ‘N’. Now let’s define a function ‘f(x)’ equal to the number of integers not more than ‘x+1’ and greater than equal to ‘1’ and are coprime to integer ‘x’.

Let’s say there is a number ‘X’ divided by ‘K’ different prime numbers, and let array ‘P’ of length ‘K’ be the array of prime numbers dividing the number ‘X’.

So ‘g(X)’ is equal to the sum of ∑f(X/Pi) ‘i’ in the range ‘[0, K-1]’ both inclusive.

Construct an array ‘Y’ of length ‘N’ where ‘Y[i]’= ‘g(i+1)’ for ‘i’ in the range ‘[0, N-1]’.

Determine the array ‘Y’.

Example:
'N' = 3
First calculate ‘f(1)’, ‘f(2)’ and ‘f(3)’.
‘f(1)’ = ‘2’ as ‘1’ and ‘2’ are co-prime to ‘1’.
‘f(2)’ = ‘2’ as ‘1’ and ‘3’ are co-prime to ‘2’.
‘f(3)’ = ‘3’ as ‘1’, ‘2’  and ‘4’ are co-prime to ‘3’.
Now calculate ‘g(1)’ , ‘g(2)’, ‘g(3)’.
‘g(1)’ as no prime number divides 1, so ‘g(1) = 0’.
‘g(2)’ = ‘f(2/2)’ = ‘f(1) = 2’ as ‘2’ is the only prime number that divides ‘2’.
‘g(3) = ‘f(3/3)’ = ‘f(1) = 2’ as ‘3’ is the only prime number that divides ‘3’.
Try solving now
02
Round
Medium
Video Call
Duration30 minutes
Interview date7 Jun 2022
Coding problem5

There were 2 interviewers in this round . It was on Microsoft Teams.

1. Puzzle

An ant is at the bottom of the wall 35 feet down. It climbs up 2 feet each hour, but later it slips down 1 feet. How long will it take to reach the top of the wall?

Problem approach

Tip 1 : Ant climbs up 2 feet every hour, but slips 1 foot as well. So it succeeds in climbing 1 foot per hour.
Tip 2 : 33 hours, it would have climbed 33 feet. In the 34th hour it would climb further up and reach the top of the wall .
Tip 3 : Answer is 34 hours.

2. Quick Sort

Moderate
10m average time
90% success
0/80
Asked in companies
Samsung R&D InstituteLenskart.comSamsung

You are given an array of integers. You need to sort the array in ascending order using quick sort.

Quick sort is a divide and conquer algorithm in which we choose a pivot point and partition the array into two parts i.e, left and right. The left part contains the numbers smaller than the pivot element and the right part contains the numbers larger than the pivot element. Then we recursively sort the left and right parts of the array.

Example:

Let the array = [ 4, 2, 1, 5, 3 ]
Let pivot to be the rightmost number.

example

After the 1st level partitioning the array will be { 2, 1, 3, 4, 5 } as 3 was the pivot. After 2nd level partitioning the array will be { 1, 2, 3, 4, 5 } as 1 was the pivot for the left part and 5 was the pivot for the right part. Now our array is sorted and there is no need to divide it again.

Problem approach

Use the quick sort algorithm to solve it.

Try solving now

3. OS Questions

What do you understand by Caching

Problem approach

Tip 1 : Explain the term 
Tip 2 : Tell some places in life where caching is used 
Tip 3 : Tell how caching is done in the system

4. DBMS Question

What are the ACID properties

Problem approach

Tip 1 : Explain each term of the ACID 
Tip 2 : Why is it useful to have acid transaction

5. Web Dev Question

What is AJAX ?

Problem approach

Tip 1 : Explain the term 
Tip 2 : The benefits and demerits of using ajax 
Tip 3 : Any project where you have used it

03
Round
Easy
HR Round
Duration20 minutes
Interview date9 Jun 2022
Coding problem1

This was the last round . The interviewer was friendly and was actively involved in the discussion.

1. Basic HR Questions

Are you comfortable with relocation?

What do you know about the company?

Why do you want to join TCS?

Problem approach

Tip 1 : The answer is always just what you feels
Tip 2 : Prepare it well why you have no problem with relocation

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Assistant System Engineer
2 rounds | 3 problems
Interviewed by TCS
1579 views
1 comments
0 upvotes
Assistant System Engineer
3 rounds | 4 problems
Interviewed by TCS
0 views
0 comments
0 upvotes
Assistant System Engineer
3 rounds | 6 problems
Interviewed by TCS
1313 views
0 comments
0 upvotes
Assistant System Engineer
3 rounds | 5 problems
Interviewed by TCS
958 views
0 comments
0 upvotes