Tip 1 : Practice CP more and more.
Tip 2 : Keep your resume short and crisp.
Tip 1 : Keep your resume short and crisp.
Tip 2 : Highlight your achievements and projects.
It was online test round, which consisted of CODING, APTITUDE and DEBUGGING questions.



Input: 'n' = 3, 'k' = 2 and 'arr' = {1, 2, 3}
Output: 2
Explanation: The maximum possible minimum distance will be 2 when 2 cows are placed at positions {1, 3}. Here distance between cows is 2.
Tip 1: it was Leetcode medium problem, you can solve easily if you have practiced from there.



1. The grid has 0-based indexing.
2. A rotten orange can affect the adjacent oranges 4 directionally i.e. Up, Down, Left, Right.
2 coding questions were asked.



Can you solve each query in O(logN) ?
First applied brute force - then slowly optimized the solution.
The interviewer was very helpful.



1. The helper function ‘knows’ is already implemented for you.
2. ‘knows(A, B)’ returns "false", if A doesn't know B.
3. You should not implement helper function ‘knows’, or speculate about its implementation.
4. You should minimize the number of calls to function ‘knows(A, B)’.
5. There are at least 2 people at the party.
6. At most one celebrity will exist.

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?