Tip 1 : Be consistent and start early, I believe that consistency can beat smartness.
Tip 2 : Never underestimate yourself and surround yourself with good people who encourage you.
Tip 3 : If you're in any college society, maintain your schedule well and choose your priorities.
Tip 1: Never try to fake things in your resume, it will always come out.
Tip 2: Design your resume nicely using flowCV/Overleaf so that all the content is visible in one look.
Tip 3: Be well versed with whatever skills/projects you mention in your resume.
Coding round timing was of 90 mins from 8pm to 9:30. It consisted of 3 questions from Medium to Difficult level.



1. A complete binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes at the last level are as far left as possible.
2. All the node values are positive.
3. The size of the linked list is greater than 1.
4. The end of the linked list is represented by -1.
Interview was of 1 hour. It was pure coding round, they didn’t ask questions from any other subjects like OS and DBMS.



If the given string is 56789, then the next greater number is 56798. Note that although 56790 is also greater than the given number it contains 1 '0' which is not in the original number and also it does not contain the digit '8'.
The given string is non-empty.
If the answer does not exist, then return -1.
The given number does not contain any leading zeros.
Standard leetcode problem.



Consider ARR = [[1 , 0 , 1] ,
[1 , 1 , 1] ,
[1 , 1 , 1]],
the Good matrix after updating the given matrix as described in the question is
[[0 , 0 , 0] ,
[1 , 0 , 1] ,
[1 , 0 , 1]].
Since ARR[0][1] is 0, we need to set all element’s values present in 0-th row and 1-th column to 0.
You do not need to print the matrix. Just change in the given input.
Interview was of 1 hour. It was pure coding round,They didn’t ask questions from any other subjects like OS and DBMS.

Standard Binary Search problem.



If A = [3, 2, 3], and K = 2.
Then max of [3, 2] = 3 and max of [2, 3] = 3
So, the answer will be [3, 3]
If A = [3, 2, 3, 5, 1, 7] and K = 3.
Then max of [3, 2, 3] = 3
Then max of [2, 3, 5] = 5
Then max of [3, 5, 1] = 5
Then max of [5, 1, 7] = 7
So the answer will be [3, 5, 5, 7]
Can you solve the problem in O(N) time complexity and O(K) space complexity?
Foe each number at suppoe index i, find next greater on its left (suppose index j), and next greater on right (suppose index k). The answer will be (i-j)*(k-i).



Where distance between two points (x1, y1) and (x2, y2) is calculated as [(x1 - x2) ^ 2] + [(y1 - y2) ^ 2].
Binary Search.



The traversal should proceed from left to right according to the input adjacency list.
Adjacency list: { {1,2,3},{4}, {5}, {},{},{}}
The interpretation of this adjacency list is as follows:
Vertex 0 has directed edges towards vertices 1, 2, and 3.
Vertex 1 has a directed edge towards vertex 4.
Vertex 2 has a directed edge towards vertex 5.
Vertices 3, 4, and 5 have no outgoing edges.
We can also see this in the diagram below.
BFS traversal: 0 1 2 3 4 5

Basic BFS approach.

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?