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

System Engineer

TCS
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures and Algorithms, Object-Oriented Programming System, Operating system, Database Management System
Tip
Tip

Try to do Data Structures and Algorithms based questions and firstly attempt it yourself before going to the solution, also try to do it as quickly as you can. Also prepare for theory subjects like Operating system, Database Management System, etc which I prepared through Coding Ninjas subjective notes and they are very accurate and up to mark.

Application process
Where: Company Website
Eligibility: Above 6 CGPA
Resume Tip
Resume tip

Keep your resume simple and complete. Mention some good-level projects, your previous experiences, and coding achievements if any.

Interview rounds

01
Round
Easy
Video Call
Duration45 minutes
Interview date23 Jun 2022
Coding problem2

1. Kth Smallest and Largest Element of Array

Easy
15m average time
70% success
0/40
Asked in companies
HSBCSalesforceSprinklr

You are given an array ‘Arr’ consisting of ‘N’ distinct integers and a positive integer ‘K’. Find out Kth smallest and Kth largest element of the array. It is guaranteed that K is not greater than the size of the array.

Example:

Let ‘N’ = 4,  ‘Arr’ be [1, 2, 5, 4] and ‘K’ = 3.  
then the elements of this array in ascending order is [1, 2, 4, 5].  Clearly, the 3rd smallest and largest element of this array is 4 and 2 respectively.
Problem approach

You are given an array ‘Arr’ consisting of ‘N’ distinct integers and a positive integer ‘K’. Find out Kth smallest and Kth largest element of the array. It is guaranteed that K is not greater than the size of the array.
Example:
Let ‘N’ = 4, ‘Arr’ be [1, 2, 5, 4] and ‘K’ = 3. 
then the elements of this array in ascending order is [1, 2, 4, 5]. Clearly, the 3rd smallest and largest element of this array is 4 and 2 respectively.

Try solving now

2. Print characters at prime indices

Easy
15m average time
90% success
0/40
Asked in companies
IBMRazorpayTCS

You are given a string 'STR' of length 'N'. You need to return a string that will contain all the characters present at the prime indices of the original string. The relative order of characters in the new string should be exactly the same as it was in the original string.

Note:

1. Prime indices are those indices that are prime numbers i.e. all the numbers except 0 and 1 which are divisible by 1 and the number itself. For eg. If a character is at index 5 in some string, then it is at a prime index, as 5 is a prime number.

2. The given string may consist of characters ‘a’-’z’, ‘A’-’Z’, ‘0’-’9’ at any place.

3. The given string follows 0-based indexing. So, assume that the first character of the given string is at index 0.
Problem approach

You are given a string 'STR' of length 'N'. You need to return a string that will contain all the characters present at the prime indices of the original string. The relative order of characters in the new string should be exactly the same as it was in the original string.
Note:
1. Prime indices are those indices that are prime numbers i.e. all the numbers except 0 and 1 which are divisible by 1 and the number itself. For eg. If a character is at index 5 in some string, then it is at a prime index, as 5 is a prime number.

2. The given string may consist of characters ‘a’-’z’, ‘A’-’Z’, ‘0’-’9’ at any place.

3. The given string follows 0-based indexing. So, assume that the first character of the given string is at index 0.

Try solving now
02
Round
Easy
HR Round
Duration30 minutes
Interview date23 Jun 2022
Coding problem1

1. Basic HR Questions

Describe the workplace where you’ll be most happy and productive.

Who is your role model?

Problem approach

Tip 1 : Be prepared and convey with proper simple sentences.
Tip 2 : Giving examples for each question.
Tip 3 : Being honest and genuine.

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
System Engineer
2 rounds | 4 problems
Interviewed by TCS
0 views
0 comments
0 upvotes
System Engineer
2 rounds | 3 problems
Interviewed by TCS
1155 views
0 comments
0 upvotes
System Engineer
2 rounds | 4 problems
Interviewed by TCS
1338 views
0 comments
0 upvotes
System Engineer
3 rounds | 6 problems
Interviewed by TCS
1277 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
System Engineer
2 rounds | 4 problems
Interviewed by HCL Technologies
1426 views
0 comments
0 upvotes
company logo
System Engineer
1 rounds | 3 problems
Interviewed by Microsoft
0 views
0 comments
0 upvotes
company logo
System Engineer
3 rounds | 6 problems
Interviewed by HCL Technologies
943 views
0 comments
0 upvotes