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

Digital Technology Intern

TCS
upvote
share-icon
2 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Basics in C, C++,SQL, Aptitude, DBMS, Data structures
Tip
Tip

Tip 1 : Have strong basic skills
Tip 2 : Have good projects in your resume

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

Tip 1 : Have good projects
Tip 2 : keep only what you know

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date10 Jul 2021
Coding problem1

1. Array Rotation

Easy
20m average time
80% success
0/40
Asked in company
TCS

You are given an array A of size N.

You are also given an integer X and a direction DIR. You need to rotate the array A by X positions in the direction specified by DIR.

DIR can be:

  • 'LEFT': Rotate the array to the left by X positions.
  • 'RIGHT': Rotate the array to the right by X positions.

Return the resulting rotated array.

For example:

Input :
A = [6, 2, 6, 1], X = 1, DIR = ‘LEFT’

Output :
2 6 1 6

Explanation: Rotate array ‘A’ to the left one time.
[6, 2, 6, 1] => [2, 6, 1, 6]
Try solving now
02
Round
Medium
Video Call
Duration30 minutes
Interview date4 Aug 2021
Coding problem1

1. String Palindrome

Easy
0/40
Asked in companies
UnacademyCIS - Cyber InfrastructureThales

Given a string, determine if it is a palindrome, considering only alphanumeric characters.

Palindrome
A palindrome is a word, number, phrase, or other sequences of characters which read the same backwards and forwards.
Example:
If the input string happens to be, "malayalam" then as we see that this word can be read the same as forward and backwards, it is said to be a valid palindrome.

The expected output for this example will print, 'true'.

From that being said, you are required to return a boolean value from the function that has been asked to implement.

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 remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Digital Technology Intern
3 rounds | 6 problems
Interviewed by TCS
1156 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by TCS
0 views
0 comments
0 upvotes
Assistant System Engineer
3 rounds | 7 problems
Interviewed by TCS
953 views
0 comments
0 upvotes
TCS Ninja
3 rounds | 5 problems
Interviewed by TCS
1052 views
0 comments
0 upvotes