Tip 1 : Strong your DSA part like doing 400 to 500 problems
Tip 2 : Strong your computer fundamentals like OS,OOPs,DBMS
Tip 3 : Build a good resume and include atleast two project and prepare for your project for the interview
Tip 1 : Include atleast two project
Tip 2 : Do not put false things on resume.
test started from 10.30 am



#include
using namespace std;
int levenDistance(string word1, string word2) {
int n1=word1.size();
int n2=word2.size();
if(n1==0 || n2==0) return n1?n1:n2;
vector> dp(n1+1,vector(n2+1,0));
for(int i=0;i<=n1;i++)
{
for(int j=0;j<=n2;j++)
{
if(i==0 && j==0) dp[i][j]=0;
if(i==0 && j>0) dp[i][j]=j;
if(j==0 && i>0) dp[i][j]=i;
}
}
for(int i=1;i<=n1;i++)
{
for(int j=1;j<=n2;j++)
{
if(word1[i-1]==word2[j-1]) dp[i][j]=dp[i-1][j-1];
else{
dp[i][j]=1+min(dp[i-1][j-1],min(dp[i-1][j],dp[i][j-1]));
}
}
}
return dp[n1][n2];
}
string solve(int N,vector words,string s)
{
int mini=1e9;
string ans;
for(int i=0;i {
int dist=levenDistance(words[i],s);
// cout< if(dist { mini=dist;
ans=words[i];
}
else if(dist==mini){
if(words[i] }
}
return ans;
}
8.00 am to 8.45 am and the interviewer was very good




Input: 'a' = [2, 4, 6] and 'b' = [1, 3, 5]
Output: 3.5
Explanation: The array after merging 'a' and 'b' will be { 1, 2, 3, 4, 5, 6 }. Here two medians are 3 and 4. So the median will be the average of 3 and 4, which is 3.5.
by making partitions and using Binary Search
interview was not in good mood, he just asked my intro and not shaw any interest in my intro.then he asked me about LRU in OS and give me a problem which i did very easily then he asked me:
what is data structure
what is binary tree
comparison between array and binary
how it's structure
what is bst
how it's structure
what is heap
how it's structure
then he give me a coding problem find adjacent element having greater sum in a array
then he asked me about graph what are it's real life applications
then he asked me about dijkstra algorithm and asked me to explain it working
then he jumped to the heap and asked me to explain its working how insertion and deletion works
then he asked me about arrays linkedlist and their comparison


Input:
'N' = 5
‘ARR’ = [1, 2, 3, 4, 5]
Output: 9
The optimal subset would be [1, 3, 5], in which no two elements are adjacent to each other and the sum of the subset is 9. We cannot make the sum greater than 9.

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