Tip 1 : Be very good with basic data structures.
Tip 2 : Try writing code on notepad sometimes.
Tip 3 : Focus on problem solving, during interview speak out your approach simultaneously while you are thinking about approach
Tip 1 : Write only what you know.
Tip 2 : Make it short.
Aptitude + Coding round:
Aptitude Questions (30 questions in 30 minutes), easy-medium level. Just after finishing the Coding round was there, 4 coding questions in 60 minutes.



Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Count the number of 0s, 1s and 2s in the given array. Then store all the 0s in the beginning followed by all the 1s then all the 2s.



Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]
Output: 11
Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
I used Kadane's algorithm.....Luckily I solved same question some days before the test.






A string ‘B’ is a substring of a string ‘A’ if ‘B’ that can be obtained by deletion of, several characters(possibly none) from the start of ‘A’ and several characters(possibly none) from the end of ‘A’.
Two strings ‘X’ and ‘Y’ are considered different if there is at least one index ‘i’ such that the character of ‘X’ at index ‘i’ is different from the character of ‘Y’ at index ‘i’(X[i]!=Y[i]).
He started with "Hello Rahul, Tell me about yourself briefly". Then he asked few theoretical questions and asked me about my favourite subject in engineering and why i like it. I named DS and Algorithms and reason is problem solving. He shared two coding questions in chatbox and asked me to write the code on given platform.



The series is 1-based indexed.
I wrote code and he then he asked me to look for corner cases. I said if n is large then programme will run for long time and optimized code accordingly.
He started round with coding question + SQL + Coding question and some questions from my projects.
Given n number of rows containing data in this "cityname1 cityname2 distance" format and data is redundant. You have to think about a data structure to store them efficiently.
He asked me choose one tech to solve like coding language or SQL, i preferred c++ and used Unordered_map to store the data.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?