Tata Consultancy Service Ltd. interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Tata Consultancy Service Ltd.
upvote
share-icon
2 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Application story
I applied through the TCS NQT (National Qualifier Test) conducted off-campus. After clearing the NQT exam, I was shortlisted for the TCS Prime role. The process included an online test, followed by technical and HR interviews. My interview experience was smooth, and the entire process was coordinated through the TCS recruitment portal. For preparation, I practiced aptitude by solving textbook mocks, strengthened my DSA skills, and used coding platforms for coding practice.
Preparation
Duration: 3 months
Topics: Java, SQL, DBMS, Operating System (OS concepts), Data Structures & Algorithms (DSA), Competitive Programming, Flutter, Firebase, Computer Networks (CN), College Major Project (important), OOPS (most important)
Tip
Tip

Tip 1: Focus on strengthening Data Structures & Algorithms (DSA) through consistent practice.

Tip 2: Revise Object-Oriented Programming (OOP) concepts thoroughly, as they are among the most important topics for interviews.

Tip 3: Work on at least one major project (e.g., using Flutter + Firebase) to gain practical exposure and confidence.

Tip 4: Regularly revise core subjects like DBMS, Operating Systems, and Computer Networks for conceptual clarity.

Application process
Where: Company Website
Eligibility: Above 7 CGPA, no active backlogs, and at least two development projects on the resume. (Salary Package:9.07 LPA (for TCS Prime role)))
Resume Tip
Resume tip

Tip 1: Highlight your major project and practical work (e.g., Flutter + Firebase).

Tip 2: Keep your resume concise and avoid including false or irrelevant information.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration180 minutes
Interview date3 Apr 2025
Coding problem2

1. Count Character Occurrences

Easy
0/40

Given a string 'S' of length 'N' and a character 'C', the task is to count the occurrence of the given character in the string.


Return the total number of times the character 'C' appears in the string 'S'.


For Example :
Let 'N' = 5, 'S' = "bbacb", 'C' = 'b'.
The character 'b' appears 3 times in the string "bbacb".
Therefore, the answer is 3.
Try solving now

2. Two and Four Wheeler Roads

Hard
48m average time
0/120
Asked in companies
Wells FargoGoldman SachsGartner

There is a country with 'N' cities and 'M' bidirectional roads of 3 types.

Type 1: Two Wheeler Road, It means only vehicles having two wheels can use this road.
Type 2: Four Wheeler Road, It means only vehicles having four wheels can use this road.
Type 3: Both two and four Wheeler Road, It means this road can be used by both type of vehicles.

The problem is to find the maximum number of roads that can be removed such that a path exists for every pair of cities for each two-wheeler and four-wheeler vehicle.

Note:
1. Roads may form a cycle.

2. The cities do not have multiple same roads i.e all the roads are unique.

3. If every city cannot be reached, then return -1.
Try solving now
02
Round
Easy
Face to Face
Duration35 minutes
Interview date19 Jun 2025
Coding problem4

1. Database Indexing

  • Explain indexing in databases.
  • What are the types of indexing, and why is it used?

2. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
IntuitSprinklrCIS - Cyber Infrastructure

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

3. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
BarclaysOracleHCL Technologies

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Try solving now

4. OOP Concepts

  • Explain the four pillars of OOP: Encapsulation, Abstraction, Inheritance, and Polymorphism. (Learn)
  • What is the difference between an abstract class and an interface? (Learn)
  • Can you explain constructors and their types in Java/C++? (Learn)
  • What is the use of the super keyword in Java? (Learn)

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
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4898 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
1043 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6638 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3639 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes