Tip 1 : Learn By Doing
Tip 2 : Be consistent throughout preparation
Tip 3 : Do atleast one major project
Tip 1 : Mention only true things.
Tip 2 : Try to mention everything into one page only.
Basically, I got morning shift for the paper and It was around 9AM and as we know TCS provides best when it comes to test platform or any other exams.I gave test smoothly for approx.2.30 hrs and it was completely moderated through camera and you cant move your hand also like you have to use rough then use it on their platform which they provided in test env.



If the given string is:
abcadeecfb
Then after deleting all duplicate occurrences, the string looks like this:
abcdef
Step 1 : Solved using brute force method i.e. two pointers method.
Step 2 : take two pointers i.e l for left and r for right and traverse through string.
Step 3 : Traverse through the string and for every index l check if str[l] is already present on the left side of the current index by looping through r -> 0-l-1 ;
Step 4 : If same character found break the loop. and after this we will print our res string which we made while looping.



If ‘ARR’ = [4 5 6 5 7 3] and ‘K’ = 5
Pairs are(4, 6), (5, 5) ,and (7, 3) and the sum of elements of each pair is divisible by ‘K’ i.e 5.
It consists of 2 question which was to be solved in 1 hr. question was medium level type.



There must be no consecutive horizontal lines of equal height in the output skyline. For instance, [...,[2 3], [4 5], [7 5], [11 5], [12 7],...] is not acceptable; the three lines of height 5 should be merged into one in the final output.
As such: [..., [2 3], [4 5], [12 7],...].
Also, the buildings are sorted by a non-decreasing order.
For more clarification see sample case 1.



Note: Since the number of ways can be very large, return the answer modulo 1000000007.
N=3

We can climb one step at a time i.e. {(0, 1) ,(1, 2),(2,3)} or we can climb the first two-step and then one step i.e. {(0,2),(1, 3)} or we can climb first one step and then two step i.e. {(0,1), (1,3)}.
Step 1 : We will create one ans[] and assign 0th and 1st place as 1.
Step 2 : We will take two loops according to the condition and for first loop we will loop through N which is array length.
Step 3 : Now for second loop we will iterate upto i and in that we will calculate result by adding ans[i] with ans[i-j].
Step 4 : Finally, We will return ans[n-1] to get our answer.
It was basically technical and HR round Mixed. Interviewer was very well relaxed and gave time to me to think on some questions where i got stucked. In technical: Interviewer will asked all things that you mentioned in your resume. And OOPs concepts with real life example and prepare projects as well.
In Hr: Basic HR questions were asked.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which keyword is used for inheritance?