Tip 1 : Make a habit of solving at least 2-3 questions daily on any platform eg Leetcode/CodeStudio
Tip 2 : Practice questions across different topics
Tip 3 : Do solve questions in time-bound environment.
Tip 1 : Mention your achievements
Tip 2 : Keep it true, like don't overcrowd the resume with false skills and experience. The interviewer might ask questions from resume.
Round started early morning on Google meet. Interviewer was pretty decent and skilled.



Consider the array be 1,6,4,6,2,4,2
The integers 2, 4, 6 occur twice and only the integer 1 occurs once.
Xoring the whole array



For the given binary tree:

Output: 1 2 3 4 6 7 10
Explanation: The leftmost and rightmost node respectively of each level are
Level 0: 1(only one node is present at 0th level)
Level 1: 2 3
Level 2: 4 6
Level 3: 7 10
Using level-wise order traversal, we will be maintaining the queue to store the pending nodes. Starting from the 0th level i.e the root node we will add root node into the queue. Now for each level stored into the queue(initially we have 0th level). We will poll nodes one by one from the queue and add corresponding children into the queue. While popping nodes we will also print the first(leftmost node) and last(rightmost node) nodes of that level. This way we will be having another level pending in our queue to traverse. This process goes on until the last level is traversed(see below algorithm for the approach).
Happed same day in afternoon
I was given models of Posts and comments and was asked to write an implementation for getting comments for a post.
Tip 1 : Ask all relevant questions and be clear about the scope of the solution.
Tip 2 : Discuss everything that comes to mind.
Tip 3 : Keep incorporating feedbacks from the interviewer.
Tip 4 : Before actual implementation discuss your thoughts with the interviewer



Input: ‘N’ = 4, ‘arr’ = [3, 1, 2, 4], 'K' = 6
Output: 2
Explanation: The subarrays that sum up to '6' are: [3, 1, 2], and [2, 4].
Started with brute force N^2 solution then went on using maps.
Happened same day around 3pm.


Type 1: Triplet (i, j, k) If the square of ARR1[i] is equal to the product of ARR2[j] and ARR2[k], where 0 <= i <N and 0 <= j < k < M
Type 2: Triplet (i, j, k) If the square of ARR2[i] is equal to the product of ARR1[j] and ARR1[k], where 0 <= i <M and 0 <= j < k < N
My approach was to use a HashMap to store the frequency of the numbers. I used a HashMap to find the frequency of the quotient in the array when the square of the element of the other array is divided by the element in the array. I found the good triplets of both types separately.



The array may contain duplicate elements.
The array can also contain negative integers.
The size of the array is at least 2.
There exists at least one such subarray of size k.
The idea behind this approach is to maintain two separate Dequeues(say, minDequeue and maxDequeue) which store the indices of the elements. In maxDequeue, we will maintain decreasing order of elements while in minDequeue we will maintain increasing order of elements. The idea for this approach is that we will keep only those elements that are candidates for our answer.
Happened over google meet with Engineering Manager
Why should we hire you?
Tip 1 : Be as descriptive as possible.
Tip 2 : Do overtalks.
Tip 3 : Show excitement and passion for the product.
Tip 4 : Ask as many questions as possible

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?