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
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: CORE JAVA, MYSQL, PYTHON, HTML5, DATA STRUCTURES, OOPS
Tip
Tip

Tip 1 : Focus on basics
Tip 2 : Utterly understanding of syntax of programs
Tip 3 : Always answer with full confidence

Application process
Where: Campus
Eligibility: above 60%
Resume Tip
Resume tip

Tip 1 : Mention the skills that you are completely confident with
Tip 2 : Always be aware of all the points that you have mentioned in your resume

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date24 Oct 2020
Coding problem1

MCQs + coding round

1. Candies

Moderate
10m average time
90% success
0/80
Asked in companies
Morgan StanleyArcesiumApple

Prateek is a kindergarten teacher. He wants to give some candies to the children in his class. All the children stand in a line and each of them has a grade according to his or her performance in the class. Prateek wants to give at least one candy to each child. If two children are standing adjacent to each other, then the one with the higher rating must get more candies than the other. Prateek wants to minimize the total number of candies he must buy.

Given an array 'STUDENTS' of size 'N' that contains the grades for each student, your task is to find what is the minimum number of candies Prateek must buy so that he can distribute them among his students according to the criteria given above.

Example :

Given students' ratings : [5, 8, 1, 5, 9, 4]. 
He gives the students candy in the following minimal amounts : [1, 2, 1, 2, 3, 1]. He must buy a minimum of 10 candies.

Note :

1. If two students having the same grade are standing next to each other, they may receive the same number of candies.
2. Every student must get at least a candy.
Try solving now
02
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date12 Nov 2020
Coding problem1

Coding round

1. Largest Prime Factor

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

You are given a positive integer ‘n’. Your task is to find the largest prime factor of this given positive integer.

Note :
If there is no prime factor of a given integer, then print -1.
Try solving now
03
Round
Easy
Online Coding Interview
Duration40 minutes
Interview date27 Nov 2020
Coding problem1

TR+HR+MR

1. Swap two numbers

Easy
10m average time
0/40
Asked in companies
Paytm (One97 Communications Limited)Tata Consultancy Services (TCS)CIS - Cyber Infrastructure

You are given two numbers 'a' and 'b' as input.


You must swap the values of 'a' and 'b'.


For Example:
Input: 
'a' = 8, 'b' = 5

Output:
5 8

Explanation:
Initially, the value of 'a' and 'b' is 8 and 5, respectively.

After swapping, the value of 'a' is 5, and the value of 'b' is 8.
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

How do you create a function in JavaScript?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
1246 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 10 problems
Interviewed by Tata Consultancy Services (TCS)
859 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Tata Consultancy Services (TCS)
821 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
4302 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Arcesium
3162 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Arcesium
2132 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by BNY Mellon
1912 views
0 comments
0 upvotes