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

SDE - Intern

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Recursion,array,BST,Binary Tree,DP , Backtracking and pointer.
Tip
Tip

Tip 1 : Practice as many question you can 
Tip 2 : Focus on key concept
Tip 3 : Practice previous year question

Application process
Where: Campus
Eligibility: more than 6 CGPA
Resume Tip
Resume tip

Tip 1 : Specify at least one good project
Tip 2 : Write only those things which you know in detail

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 mintues
Interview date10 Sep 2020
Coding problem2

The round contain 20 MCQ and 2 coding questions.

1. Jar of Candies

Easy
20m average time
80% success
0/40
Asked in companies
OlaAdobeTata Consultancy Services (TCS)

There is a jar full of candies for sale at a mall counter. Jar has the capacity ‘N’. That is, jar can contain maximum ‘N’ candies when a jar is full. At any point in time jar can not have 0 or fewer candies.

Given the number ‘K’, the number of candies the customer wants. Your task is to return the candies left in the jar.

Note:

If 'K' is greater than 'N', return -1 denoting the invalid order.

For example:

Given if 'N' = 10, 'K' = 5. Then 5 candies are left in the jar after the event.
Try solving now

2. Fitness Test In Indian Navy

Easy
15m average time
85% success
0/40
Asked in companies
HSBCTata Consultancy Services (TCS)

Selection in the Indian Navy includes a fitness test which is conducted in the seawater. In this test, there will be a group of 3 trainees appearing for the swimming test in the sea for three rounds. The oxygen level remaining of each trainee will be recorded after each round in 2D matrix/list ‘OXYGEN’ of size 3 x 3.

After the trainee is finished with all rounds, an Officer from the Indian Navy calculates each trainee's remaining oxygen level over the three rounds and selects one with the highest average oxygen level as the fittest trainee. If more than one trainee attains the same highest average level, they all need to be chosen.

The final result of the test will depend upon the following factors :

1. The remaining oxygen level should only be  accepted if it is in the range between [1, 100] both inclusive else the oxygen level will be marked as 0.
2. If the calculated maximum average oxygen remaining value of trainees is below 70, then declare the trainees as unfit with the meaningful message as “Unfit.”
3. The average remaining Oxygen level should be rounded.

For Example :

img

Output for the above case will be
Trainee1
Unfit
Trainee3

Because the maximum average is 70 which is in the range and Trainee 1 and 3 both have the same value.
Trainee 2 is unfit because the average is below 70. 
Try solving now
02
Round
Easy
Video Call
Duration45 mintues
Interview date4 Oct 2020
Coding problem2

Easy question where asked basic type like what is difference between inteprator and compiler. Method to prevent deadlock and best way to implement Fibonacci series.

1. Nth Element Of Modified Fibonacci Series

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

You have been given two integers ‘X’ and ‘Y’ which are the first two integers of a series and an integer ‘N’. You have to find the Nth number of the series using the Fibonacci rule given by f(x) = f(x - 1) + f(x - 2).

The answer may be very large, return it after modulus 10 ^ 9 + 7.

Note:

The series is 1-based indexed.
Try solving now

2. Reverse Alternate Nodes of a Singly Linked List

Moderate
0/80
Asked in companies
Tata Consultancy Services (TCS)RupeekFlipkart limited

For a given Singly Linked List of integers, you are required to reverse alternate nodes and append them to the end of the list.

For Example:

The given linked list is 1->2->3->4 then after reversing the alternate nodes we will have 1->3->4->2. 

Assuming 0 based indexing, odd indexed nodes are the alternate nodes that is, in the given linked list the node with value 2 and the node with value 4 are the alternate nodes. 

List without alternate nodes:  1->3 
List with alternate nodes:  2->4 
Reversing the list with alternate nodes: 4->2

After appending the reversed alternate nodes at the end, the updated list will be 1->3->4->2. 
Problem approach

Take 2 variable fast and slow , fast=temp->next and slow = temp and then transverse slow will be at the middle of the linked list.

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 - Intern
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
1362 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 10 problems
Interviewed by Tata Consultancy Services (TCS)
1128 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1110 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
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3676 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2643 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
2320 views
0 comments
0 upvotes