Tip 1 : For codevita, Practice coding problems daily from any website(eg: Leetcode, Hackerrank etc)
Tip 2 : Have confidence in yourself
Tip 1 : Make your resume good and add only those things in your resume in which you are confident enough to answer any question
Tip 2 : Description of your project should be short and sweet.
Coding Round consists of 6 questions and time given to solve those questions was 6hours. TCS give a 24 hr window in that we can give our test anytime. The questions are basically from arrays, Mathematical , Dynamic Prgramming



1. Day starts with hour 1 and ends with hour ‘DAY_HOURS’.
2. Each hour of the prime group should be in a different part of the day.
3. If there is no prime group then return zero.
4. ‘DAY_HOURS’ should be divisible by ‘PARTS’, meaning that the number of hours per part (DAY_HOURS/PARTS) should be a natural number.
Let ‘DAY_HOURS’ = 20 and ‘PARTS’ = 2
Hence the view of our day would be in the following format:
1 2 3 4 5 6 7 8 9 10 - Part 1
11 12 13 14 15 16 17 18 19 20 - Part 2
1-11 Not a prime group because 1 is not prime.
2-12 Not a prime group because 12 is not prime.
3-13 Because both 3 and 13 are prime, it is an equivalent prime group.
4-14 Not a prime group because 4 and 14 are not prime.
5-15 Not a prime group because 15 is not prime.
6-16 Not a prime group, because 6 and 16 are not prime.
7-17 Because both 7 and 17 are prime, it is an equivalent prime group.
8-18 Not a prime group, because 8 and 18 are, is not prime.
9-19 Not a prime group because 9 is not prime.
10-20 Not a prime group because both 10 and 20 are not prime.
Hence there are 2 equivalent prime groups in the above format which are 3-13 and 7-17.
Tip 1 : First I made function for checking the prime number
Tip 2 : Second I made a equation for calculating the duration and then just checked its prime or not
It was HR round and it was conducted on cisco webex and it was nearly 30 minutes
1. Introduce Yourself
2. Why do you want to join TCS
3. Tell about joining location preference.
4. Strength and Weakness
5. Why should I hire you?
6. Where do you see yourself in 5 years?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
To make an AI less repetitive in a long paragraph, you should increase: