Tip 1: Do DSA practice on online coding platforms.
Tip 2: Before the interview, revise your JS, React, and CS fundamental concepts.
Tip 1: Put a good resume and experience, but keep it real. Verification happens by HR, and any problem with that results in rejection.
This round is completely based on JavaScript concepts. The interviewer was very friendly, and the questions were standard JavaScript questions. If you prepared well for JavaScript, anyone can easily crack it.
What are promises in JavaScript? (Learn)
Write a promise that is resolved or rejected under certain conditions.
Tip 1: Focus on JS concepts.
Tip 2: Basic JS questions.
It was a completely DSA-based round. One question was straight from an online coding platform, and one was not straight but a familiar type of question. The interview was very supportive, cooperative, and helped in understanding the problem.



If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For the given 'ARR' [9,5,4,9,10,10,6].
Output = 3
The longest consecutive sequence is [4,5,6].
Can you solve this in O(N) time and O(N) space complexity?
Initialize a HashMap:
Create a HashMap called map where each integer in the array nums will be a key, and the value will initially be true (indicating that this number could potentially start a sequence).
Populate the HashMap:
For each integer num in the array nums: Set map[num] = true.
Initialize max for the longest sequence:
Set max to 0. This will keep track of the maximum length of consecutive sequences.
Loop through each key in the HashMap:
For each key key in the HashMap: Check if there’s a number just before key (i.e., key - 1) in the map. If key - 1 exists in the map, mark map[key] as false because key cannot start a new sequence. Otherwise, if key - 1 is not in the map, key is the start of a new sequence.
Count the length of the sequence starting from key:
Initialize len to 1 (since key is the first number in the sequence). While there are consecutive numbers after key (i.e., while the map contains key + len): Increment len by 1.
Update the maximum length:
Update max to be the larger of the current max or the len just calculated.
Return the result:
After all keys are processed, return max, which represents the length of the longest consecutive sequence.



Mark Out-of-Range Numbers:
Mark Indices of Found Numbers as Negative:
Identify the First Positive Index:
It was a very interaction-friendly round. I would recommend everyone to study in detail about what they did in their internships and projects, as that is asked a lot.



For this question, you can assume that 0 raised to the power of 0 is 1.
The approach is to recursively call the function for X and N - 1, and then multiply the value returned by the recursive function with X.
Since X ^ N is the same as X * (X ^ (N - 1)).
Approach:
First, let's say the recursive function is ‘POW(X, N)’, with ‘X’ and ‘N’ as arguments. The base case for the recursive function will be when N = 0, in which case it will return the value 1 (since X ^ 0 = 1), and when X = 0, it will return the value 0.
Next, the function is called recursively with ‘X’ and ‘N - 1’ as arguments, and the value is returned by multiplying it with ‘X’. The function call will return X * POW(X, N - 1).
Tip 1: In questions like relational and non-relational, do not give one answer; it depends on the use case.
Tip 2: Revise thoroughly before the interview on DBMS.
They can ask you to put some functionality in your own project.
In computer networking, they asked about the difference between permanent storage, local storage, and cookies. (Learn)
Tip 1: revise evrything u have on resume
Tip 2: give proper ans to what you did in last company/internship
Tip 3: understand you project strngly

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