Tip 1 : Practice coding regularly instead of doing it a lot on some days and nothing on some days.
Tip 2 : Previous interview experiences are very valuable.
Tip 3 : Medium level questions are underrated. Don't skip those and only practice Hard questions.
Tip 1 : If you have experience, try to highlight your contributions to whatever projects you worked on, instead of writing a general description of the project. Descriptions with quantifiable achievements are even better.
Tip 2 : If you don't have experience, your projects will be your selling point. Try to make projects which allow you to learn different technologies. If you can make something different than the regular Hotel Management System or Chat Bot everybody makes, it will help you stand out.
Tip 3 : Don't include unnecessary information just to expand your resume. Include what you know and have done and have some confidence in. Ex - Don't put Python in Skills because you can write a loop in python. Don't put Hobbies or Languages in if it's making your resume go longer than 1 page.
2 questions to be done in 90 minutes.
Was given a week to complete the test.
Both questions were straight forward.
Also had to explain the approach (and mention Time and Space complexities) in text format.



In the below map of Ninjaland let say you want to go from S=1 to T=8, the shortest path is (1, 3, 8). You can also go from S=1 to T=8 via (1, 2, 5, 8) or (1, 4, 6, 7, 8) but these paths are not shortest.

I used Djikstra's Shortest path Algorithm to solve it.
Video Call interview with 2 coding questions and 1 leadership principle based question.



1. add(DATA) :
This function should take one argument of type and store it in its pool and returns the 'kth' largest number from the current pool of integers.
val - For this query, insert the integer into your current pool of integers and return the 'kth' largest integer from the existing pool of integers.
1. The maximum number of integers that will be given will always be under memory limits.
2. You will also be given an initial pool of integers whose size equals k.
3. The maximum number of queries will be less than 10^5.
4. The 'kth' largest element is not the 'kth' distinct element but the 'kth' largest element in the sorted order.
5. There will be at least one query of type 2.
We will create a max-heap of K size.
As elements come in from the stream we add it to the heap if it's smaller than root and heapify.
The root always gives us the Kth highest element.



‘str’ = 'abcabab', we can split this string into 3 string a, b, c as a = 'abc', b = 'ab', c = 'abc', we can clearly see that b is a substring of both a and c.
A substring is a contiguous sequence of characters within a string. For example 'ab', 'b' and 'abc' are the substring of string 'abc', but 'ac' is not a substring of 'abc'.
A non-empty substring means a substring with a size greater than 0.
I used Trie for this.
Implemented a recursive approach.
She asked how we could optimize it.
I suggested memoization. Also discussed Bottom Up DP solution but wasn't asked to code it.
2 coding questions. 60 minutes. 1 leadership principle question.






Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
I gave a stack based approach, which wasn't 100% correct.
The interviewer gave me a hint and I was able to correct the solution.
Managerial round to disucss experience, projects, leadership principles etc.
Explain the project I was working on in my previous company. Cross questions about the tech used, architecture, how it was used, what challenged we faced, what solutions we implemented, my role in the projects etc.
Tip 1 : Be honest. It's okay to exaggerate a bit but don't do it too much so that you find yourself in a cross-questioning hole you can't get out of.
Tip 2 : Prepare about your projects and past experience before hand. Be ready to answer `why` on every aspect of the project.
2 coding questions. 1 leadership principle question.


If there are multiple conflicting meetings for a particular meeting. You can return any one of them.
Consider the matrix MEETINGS = [ [ 1, 3 ] , [ 4, 5 ] , [ 2, 5 ] ]
The array containing the Conflicting Meetings will be [ 3, 3, 1 ].



If N = 2 and prerequisite = [[1, 2]]. Then, there are a total of 2 courses you need to take. To take course 1 you need to finish course 2. So, it is possible to complete all courses.

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?