Tip 1 : practice the mid level leetcode problems.
Tip 2 : practice the HLD system design problems
Tip 1 : Include the skills that you well know of
Tip 2 : provide ratings of the skills that you know



[2,3,4] - median is 3.
[2,3] - median is floor((2+3)/2) = 2.
1 I tried to use heap data structure to solve this problem.
2 we can use a max heap on the left side to represent elements that are less than effective median,
3 A min-heap on the right side to represent elements that are greater than effective median.
4 After processing an incoming element, the number of elements in heaps differs utmost by 1 element. When both heaps contain the same number of elements, we pick the average of heaps root data as effective median. 5 When the heaps are not balanced, we select effective median from the root of the heap containing more elements.



1. There are no 2 adjacent elements having same value (as mentioned in the constraints).
2. Do not print anything, just return the index of the peak element (0 - indexed).
3. 'True'/'False' will be printed depending on whether your answer is correct or not.
Input: 'arr' = [1, 8, 1, 5, 3]
Output: 3
Explanation: There are two possible answers. Both 8 and 5 are peak elements, so the correct answers are their positions, 1 and 3.
1 I have used here Divide and Conquer to find a peak in O(Logn) time.
2 I used Binary Search to check if the middle element is the peak element or not. If the middle element is not the peak element, then check if the element on the right side is greater than the middle element then there is always a peak element on the right side.
3 If the element on the left side is greater than the middle element then there is always a peak element on the left side.
4 Form a recursion and the peak element can be found in log n time.
Design the spotify app of high level design
Tip 1: Ask clarifying questions and problem area to focus on.
Tip 2: Use and explain caching techniques
Tip 3: Make use of CDN in architecture.

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?