Tip 1 : Practice daily question of DS algo
Tip 2 : Prepare all your projects
Tip 3 : Daily practice of aptitude
Tip 4 : Practice previous years Company questions
Tip 1 : Resume should contains only those skills that you know
Tip 2 : Add good projects and add github link to it also
Tip 3 : Resume should not be too long
English MCQs
Quant + Aptitude Mcqs
Coding round (60 minutes)
MCQ’s (15 English MCQ's, 20 Quant + Aptitude MCQ's - 35 MCQ's)



Input: Let the binary tree be:

Output: [10, 4, 2, 1, 3, 6]
Explanation: Consider the vertical lines in the figure. The top view contains the topmost node from each vertical line.
use the two variables, one for vertical distance of current node from the root and another for the depth of the current node from the root. use the vertical distance for indexing. If one node with the same vertical distance comes again, check if depth of new node is lower or higher with respect to the current node with same vertical distance in the map. If depth of new node is lower, then replace it.



1) Initialize count as 0
2) Sort all numbers in increasing order.
3) Remove duplicates from array.
4) Do following for each element arr[i]
a) Binary Search for arr[i] + k in subarray from i+1 to n-1.
b) If arr[i] + k found, increment count.
5) Return count.



String 'S' is NOT case sensitive.
Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Our approach will be that we will first convert the string to lowercase. Then, we will take two pointers i pointing to the start of the string and j pointing to the end of the string. Keep incrementing i and decrementing j while i < j and at every step check whether the characters at these pointers are same or not. If not then the string is not a palindrome else it is.



Approach 1:-
First, take the number N as input.
Then use a for loop to iterate the numbers from 1 to N
Then check for each number to be a prime number. If it is a prime number, print it.
Approach 2 :-
use Sieve of Eratosthenes which is used to get all prime number in a given range and is a very efficient algorithm.
Tell us about yourself and your projects.
Where do you see yourself in next 5 years?
What do you know about TCS and what are your expectations from the company?
Tell me your favourite subject and your hobbies.
One person you admired and why?

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: