Tip 1: If you are not able to qualify the aptitude round, even if you solve two coding questions, you won’t get any calls.
Tip 2: Aim to qualify the aptitude round and crack the two coding questions.
Tip 1: AI/ML, Blockchain, or Cloud—one of these three technologies is a must in your resume.
Tip 2: Keep an achievements section as well.
The test was conducted offline at a TCS ION Digital Centre in Delhi.
The systems were old, and the keyboard was not working properly.
The coding questions were also very poorly set.
The test was divided into two sections: Part A and Part B, with a total duration of 190 minutes.
Part A was the foundation section and it lasted for 75 minutes. It included three parts: Numerical Ability, Verbal Ability, and Reasoning Ability, and each of them was given 25 minutes.
After that, there was Part B, which was the advanced section and it lasted for 115 minutes. This section had Advanced Quantitative and Reasoning questions for 25 minutes, and then Advanced Coding, where we got 90 minutes to solve coding problems.


Consider ARR = [3, 4, 5] now suppose if we want to change every element value to 4, then the cost of changing 3 to 4 is |3 - 4| which is 1, and the cost of changing 5 to 4 is |5 - 4| which is 1, so the total cost is 1 + 1 = 2. The value 2 is the minimum cost to make all values in the array equal. Hence, the answer is 2.
I applied brute force and it worked, do the operation sort and repeat.



You are given arr = [1, 3, 4, 5, 6, 9], and queries = [[1, 3], [5, 6] , [1, 6]].
For the first query [1, 3] sum of elements = 1 + 3 + 4 = 8. Hence the answer is 8
For the second query [5, 6] sum of elements = 6 + 9 = 15. Hence the answer is 15
For the third query [1, 6] sum of elements = 1 + 3 + 4 + 5 + 6 + 9= 28. Hence the answer is 28.
Hence the final answer is [8, 15, 28]
I used prefix sum.
During the TCS interview round, the interviewer first asked me about my proficiency in Java.
They also asked me why I had not done any internship during college, and we discussed that briefly.
During the discussion, the interviewer mentioned that for the Prime role, they usually look for candidates who have projects related to AI/ML, Blockchain, or Cloud. Since I did not have projects in these areas, that became one of the main reasons for my rejection.
At one point, I also requested them to ask me some DSA questions, but they mentioned that DSA questions are generally asked for the Ninja role and not for the Prime role.
I also did not disclose the other offers I had at that time, which I later felt might have created a slightly negative impression during the discussion.
The interviewer asked whether I knew self join, and then told me to frame a problem statement myself and write a SQL query using a self join. (Learn)

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which data structure is used to implement a DFS?