Tip 1 : Be Consistent
Tip 2 : Do not leave any topic
Tip 3 : DO Different Pattern of Questions
Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.
The interviewer gave me a random question Rate Limiter in which I had to design the Rate Limiter in which a unique customer can ping into a website only at max 2 times in 1 second. The input was given in form of vector pair in which the first was representing the customer id and the second was the time in which he logged in (milliseconds) we have to return a vector of boolean values telling whether the following i-th input is true or false. Time was 1 hr.
The second round was the discussion on my group project,I had made a file-tag-system.so he asked several question regarding my project.
Project Discussion.
Previous internships experience.
Tip 1 : Make projects
Tip 2 : Explain it quiet efficiently
This was the first round in which we were given 4 question to solve in 90 miutes,1-EASY-MEDIUM,2-MEDIUM,3-HARD,4-HARD.
If the given ‘HOUSES’ array is [0,2,1,2,0] and ‘COST’ array is [ [1,7],[1,1],[1,1],[1,1], [5,1] ] and ‘M’ = 3.
The minimum cost will be 7+1 =8. We will colour the first house with colour 2 and the last house with colour 1.
Merge Sort Algorithm -
Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.
The above illustrates shows how merge sort works.
It is compulsory to use the ‘Merge Sort’ algorithm.
Let the array = [ 4, 2, 1, 5, 3 ]
Let pivot to be the rightmost number.
If a string has 'x' repeated 5 times, replace this "xxxxx" with "x5".
The string is compressed only when the repeated character count is more than 1.
Consecutive count of every character in the input string is less than or equal to 9. You are not required to print anything. It has already been taken care of. Just implement the given function and return the compressed string.
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which array operation has O(n) worst-case time complexity?