Tip 1 : Cover the basics of dsa
Tip 2 : Solve fundamental questions related to every topic
Tip 3 : Cover basics of os, computer network as well
Tip 1 : Make it concise and appropriate
Tip 2 : Try to add useful points only.
This was online coding round.
So, in that round there were three questions to solve in 90 minutes and I solved all of them in around 20 minutes.



1. The sub-array of an array is a continuous part of the array.
2. Consider ‘0’ based indexing.
3. ‘k’ will always be less than or equal to ‘n’.
3. Don’t print anything, just return the integer array ‘count’.
Step 1.just use property of set. it is enough



If two numbers have the same frequency then keep the one that was present before the other in the original given list (array) first.
Input: arr[] = {2, 5, 2, 8, 5, 6, 8, 8}
Output: arr[] = {8, 8, 8, 2, 2, 5, 5, 6}
Explanation :
When you sort the array based on the decreasing order of the frequency of repetition of integers in the original array,
you’ll find that the element ‘8’ is the integer with the most repeated values therefore it would be arranged first after which since both 2 and 5 have the same number of repeated
values in the original array but since the 2 arrived first so we will first arrange 2 and then 5 in our resultant array, while would be the last element after sorting here.
step 1 : Store frequency of each and every element by using the map
step 2 : Store pair of value {frequency and element} in a vector
step 3 : Sort and then print all those value frequency times



For a given string “BaaB”
3 possible palindrome partitioning of the given string are:
{“B”, “a”, “a”, “B”}
{“B”, “aa”, “B”}
{“BaaB”}
Every substring of all the above partitions of “BaaB” is a palindrome.
By using DP approach
So round 2 was a technical round held at google meet. So, the panel consisted of only one interviewer and they ask many questions related to


Input: [1,2,3,4,5]
Output: [5,4,3,2,1]




The interview began with an introduction Interviewer was very friendly and interactive
- Tell me about Yourself.
- Your Strengths and weaknesses.
- Where do you see yourself in 2 – 3years?
- Discussion on Projects.
- He asked me about my family background.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?