Tip 1 : Practice Questions and focus on grabbing the concept rather than increasing the count.
Tip 2 : Whatever Keyword you use in your CV- Projects or skills known should be well prepared and in-depth Knowledge of the Project such as how to make it Efficient, shortcomings, and Scalability issues should be known.
Tip 3 : Work on Communication skills, very important for MNCs.
Tip 1 : Include good projects and have in-depth knowledge about them, this would increase the chances of your resume getting shortlisted
Tip 2 : Only mention relevant and known skills because it is quite possible that the interviewer starts asking questions about any of those topics.
The Test was online on Microsoft's platform, there were only 2 coding questions in this round and almost all the students had done both of them so the shortlisting was done on Resume(Primarily on CGPA)



Input: 'S' = "babbc", 'COST' = [1, 2, 3, 4, 5]
Output: 3
By deleting the third letter 'b' with cost, 3 will transform the string into 'babc'. This is the minimum possible cost to transform the string.
We will traverse the string from left to right. For each substring that contains the same characters, we calculate the sum of the costs and the maximum cost mx. We add sum-mx to the answer.
I have attached the code for reference:
class Solution {
public:
int minCost(string s, vector& cost) {
int i = 0, N = s.size(), ans = 0;
while (i < N) {
int j = i, sum = 0, mx = 1;
for (; i < N && s[i] == s[j]; ++i) sum += cost[i], mx = max(mx, cost[i]);
ans += sum - mx;
}
return ans;
}
};



1) An element of the ‘COORDINATES’ array is a pair of ‘X' and ‘Y’ coordinates of a point, i.e., COORDINATES[i] = (Xi, Yi).
2) |DISTANCE| represents the absolute value of distance.
3) All points are considered to be connected if there is exactly one simple path between two points.
4) According to Wikipedia, a simple path is a path in a plane that does not have repeating points.
The problem requires us to calculate the longest path using an adjacency list and keeping a variable mx to keep a count of max. I have attached the code for reference:
#include
int longest_path(int node,int parent, bool odd,vector adj[])
{
if(odd &&(node%2==1))
return 0;
int mx=0;
for (auto adjNode:adj[node])
{
if(adjNode!=parent)
{
bool sOdd=odd| (node%2==1);
mx=max(mx,longest_path(adjNode,node,sOdd,adj));
}
}
return mx+1;
}
int solution(vector&T)
{
int n=T.size();
vectoradj[n];
for(int i=0;i {
if(i!=T[i])
{
adj[i].push_back(T[i]);
adj[T[i]].push_back(i);
}
}
return longest_path(0,-1,false,adj);
}
The Interview round was after the OA and 20 students were shortlisted for this round(I was one of them).It was in the morning and since it was on campus we had got interview link from Training and Placement cell of our college for the same.



bool isBadVersion(version) returns true for all versions ‘V’ such that V > X, where X is the first bad version.
It was a very simple binary search problem, I initially told the interviewer about my approach. The first approach was Brute force that is linear seach after which he asked me to optimize it and then i told him about muy approach of linear search to reduce complexity and he asked me to code it.
I have attached it for reference:
bool isBadVersion(int version);
class Solution {
public:
int firstBadVersion(int n) {
int l = 1, r = n;
while (l < r) {
int m = l + (r - l) / 2;
if (isBadVersion(m)) r = m; else l = m + 1;
}
return l;
}
};
Types of Joins
How to choose primary key?
What are views?
What will you do if you want the top 5 records from a table?
Tip 1 : Read SQL Queries
Tip 2 : Read DBMS interview questions
Tip 3 : Focus on Keywords

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?