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

SDE - 1

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

Interview preparation journey

expand-icon
Journey
My journey starts by taking a part in a tech society. There I explore different coding languages. After this I started learning c++ DSA by taking a course from coding ninjas. After this there was inhouse Training on Web D. From this training i started learning WebD.
Application story
This Company come on campus . We just have to upload resume and filled all details in the form. After this TEst link for TCS EXam come.
Why selected/rejected for the role?
I was not selected as I was not able to give correct approach in the interview. They were expecting more optimised solution for the DSA problem
Preparation
Duration: 3 Months
Topics: Data Structures, Pointers, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Practice Atleast 250 Questions
Tip 2 : Do atleast 2 projects

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

Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration150 minutes
Interview date10 Aug 2021
Coding problem2

consists of cognitive Mcqs and 2 coding questions.

1. Check if the door is open or closed

Easy
10m average time
90% success
0/40
Asked in companies
IBMTata Consultancy Services (TCS)

There are ‘N’ doors and ‘N’ people in a house. Each person and door has a unique ID ranging from 1 to ‘N’. A person can change the status of the door i.e, if the door is open then a person can close the door and vice versa. Initially, all the doors are closed and each person wants to change the status of all doors whose ID is a multiple of the ID of the person. You need to find out the final status of all the doors.

The answer should be given in a form of a binary string where ‘0’ represents the closed door and ‘1’ represents the open door. For example, the status “close open close” will form a binary string “010”.

Try solving now

2. Remove 9

Easy
15m average time
85% success
0/40
Asked in companies
DunzoCroweNagarro Software

A committee of mathematicians decided to remove every natural number which contains digit 9 such as 9, 19, 29, ... . Hence the new sequence of natural numbers will be: 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, ….

Given the natural number ‘N’, can you find the ‘N’th number in the new sequence formed after removing every integer that contains 9?

Note:

The sequence of natural numbers are integers that start from 1.
Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date8 Sep 2021
Coding problem5

1. Find the perimeter

Moderate
0/80
Asked in companies
AdobeBloomsbury PublishingTower Research Capital

You are given a map of an island. Your task is to find the perimeter of the island. The map is represented by a binary grid where ‘0’ represents water, and ‘1’ represents the land.

Note:
There is only one island and water surrounding it. There are no lakes, i.e., all the water is connected. Each edge of the land is 1 unit.
For example:
You are given map = [[0, 0, 0, 0, 0],
                     [0, 0, 1, 0, 0],
                     [0, 1, 1, 1, 0],
                     [0, 0, 1, 0, 0]]

You are given the map as:

sample1

Here, it can be clearly seen the perimeter of the island is 12. Hence the answer is 12.
Try solving now

2. Longest Consecutive Sequence

Moderate
40m average time
70% success
0/80
Asked in companies
AmazonAppleUber

You are given an unsorted array/list 'ARR' of 'N' integers. Your task is to return the length of the longest consecutive sequence.

The consecutive sequence is in the form ['NUM', 'NUM' + 1, 'NUM' + 2, ..., 'NUM' + L] where 'NUM' is the starting integer of the sequence and 'L' + 1 is the length of the sequence.

Note:

If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For example-
For the given 'ARR' [9,5,4,9,10,10,6].

Output = 3
The longest consecutive sequence is [4,5,6].
Follow Up:
Can you solve this in O(N) time and O(N) space complexity?
Try solving now

3. DBMS Question

difference between primary and unique key

4. Software Engineering Question

what is sdlc cycle

5. DBMS Question

what are dml and dcl commands

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
3 rounds | 5 problems
Interviewed by Tata Consultancy Services (TCS)
1842 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 12 problems
Interviewed by Tata Consultancy Services (TCS)
1287 views
1 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Tata Consultancy Services (TCS)
1474 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 7 problems
Interviewed by Tata Consultancy Services (TCS)
1595 views
3 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by BNY Mellon
6240 views
3 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by BNY Mellon
0 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Accenture
2487 views
0 comments
0 upvotes