Tip 1 : Have a good understanding of core subjects
Tip 2 : Prepare all the DSA topics (everything is important)
Tip 1: At least have one full stack project.
Tip 2: Try to work(make projects) on new technologies like cloud and ML
Section 1: There were 3 Coding questions. All questions were relatively easy to medium.
Section 2: Aptitude - It had very easy MCQ questions. There were 25 MCQ questions.
Section 3: Technical - There were a total of 47 MCQ-type questions based on core subjects.
There were also some output questions. Total time for OA was 2 hrs of which 1 hr was for section 1 and another 1 hr was for the other 2 sections.



This question is exactly similar to the minimum platform.
I solved it by sorting both the arrival and departure time arrays and calculating the max number of arrivals that are before the departure of any train.
Main logic -
while(i {
if(arr[i]<=dep[j])
{
c++;
i++;
}
else
{
j++;c--;
}
ans=max(ans,c);
}
return ans.


Input: ‘N’ = 5, ‘K’ = 4, ‘NUMS’ = [ 1, 2, 1, 0, 1 ]
Output: 4
There are two subarrays with sum = 4, [1, 2, 1] and [2, 1, 0, 1]. Hence the length of the longest subarray with sum = 4 is 4.



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.
This is how I solved it -
bool chk(int dist,vector&v,int m)
{
int m_placed=1;
int prev=v[0];
for(int i=1;i=dist)
{
m_placed++;
if(m_placed==m)
return true;
prev=v[i];
}
}
return false;
}
int aggressiveCows(vector &v, int m)
{
// Write your code here.
sort(v.begin(),v.end());
long long int low=0;
int n=v.size();
long long int high=1e9;
long int ans=-1;
while(low<=high)
{
int mid=low+(high-low)/2;
if(chk(mid,v,m))
{
ans=mid;
low=mid+1;
}
else high=mid-1;
}
return ans;
}
The first round of interviews started with my introduction and a complete discussion of my projects. They asked me 2 coding questions then they asked me the question related to oops. Ex. Virtual function, Run time polymorphisms, Abstract Class, etc. All the basic to advance concepts of oops were asked in this round. Then they moved toward DBMS and asked me the questions like indexing, DML, DDL, Joins, Subquery, Normalization, Denormalization, and some medium level SQL queries on HAVING AND GROUP BY clause. This round went for like more than one and half hour.
What are ACID properties
Tip 1:Be concise and to thee point
Tip 2: Explain with real life example
What is Virtual function, Run time polymorphisms,
what are Abstract Classes? How we achieve run time polymorphism in C.
Tip 1: Try to explain with block of code
Tip 2: Try to ask for more clarity on question if you are getting confused
what are DML, DDL commands.
SQl querry to find out how many people visited the museum on each day.
SELECT date, COUNT(*)
FROM visit
GROUP BY date;



If “nums” = {2, 1, 3}.
The valid non-empty subsequences of the array are {2}, {1}, {3}, {2, 1}, {1, 3}, {2, 3} and {2, 1, 3}. So, the longest subsequence satisfying the given conditions are {2, 1} and {2, 3}. The length of the longest subsequence is 2. So, the answer is 2.
Any subsequence of length = 1 is also a valid subsequence.
The idea is to first sort the array and find the longest subarray with consecutive elements. After sorting the array and removing the multiple occurrences of elements, run a loop and keep a count and max (both initially zero). Run a loop from start to end and if the current element is not equal to the previous (element+1) then set the count to 1 else increase the count. Update max with a maximum of count and max.
what is normalisation and denomarlisation?
what are joins?
The second round started with my introduction and then he asked me behavioral questions and questions related to the company like, what they do, why Fastenal etc. This round went for like 30-35 minutes.
Why Fastenal
Tip 1: Try to do some research on the company so you could make up a good point
Tip 2: Try to show some common behavior in your personality and the company environment.
Why do you think you are the best fit for this company
Tip 1:Try to explain your capabilities that match with the company's work culture
Tip 2: Try to explain your skill in good sense
Introduce yourself?

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