Tip 1 : Do know about hashing and how hash maps work . And study about OOPs as it will help in design problems.
Tip 2 : Know about your projects in and out thoroughly.
Tip 3 : Trust on your skills and be interactive with the interviewer
Tip 1 : Keep it concise. Yes you heard it right. Recruiters have very less time to scan through your resumes so better if it is concise, also when writing about the projects make the important things in bold.
Tip 2 : Do link your important profiles in the resume, such as coding profile , github and email.
OS , Aptitude, CN , Coding Questions.
Number Of MCQs - 60



// Given an unsorted integer array nums, return the smallest missing positive integer.
// You must implement an algorithm that runs in O(n) time and uses constant extra space.
// Example 1:
// Input: nums = [1,2,0]
// Output: 3
// Example 2:
// Input: nums = [3,4,-1,1]
// Output: 2
#include
using namespace std;
int main() {
// Read input from STDIN; write output to STDOUT.
// 1 2 0
// -1 1 3 4
//
vector v{1,2,0};
unordered_map mymp;
for(int i=0;i<(int)v.size();i++)
{
mymp[i+1]++;
}
int ans=INT_MAX;
for(int i=0;i<(int)v.size();i++)
{
if(v[i]>0&&mymp.count(v[i])>0)
{
mymp[v[i]]=0;
}
}
for( auto x: mymp)
{
if(x.second==1)
{
ans=min(ans,x.first);
}
}
cout< return 0;
}



Each pair should be sorted i.e the first value should be less than or equals to the second value.
Return the list of pairs sorted in non-decreasing order of their first value. In case if two pairs have the same first value, the pair with a smaller second value should come first.
#include
#include
using namespace std;
int main() {
// Read input from STDIN; write output to STDOUT.
// [3,1,7,2,6,0]
// [2,1,5,0,4,6]
vector v{2,1,5,0,4,6};
int a=INT_MAX,b=INT_MAX;
bool exists=false;
for(int i=0;i<(int)v.size();i++)
{
if(a>v[i])a=v[i];
if(v[i]>a&&v[i]b)
{
exists=true;
break;
}
}
if(exists)cout<<"yes";
else cout<<"no"< return 0;
}



As the answer can be large, return your answer modulo 10^9 + 7.
Can you solve this using not more than O(S) extra space?



A = “bc”, B = “abcddbc”.
String “A” is present at index 1, and 5(0-based index), but we will return 1 as it is the first occurrence of “A” in string “B”.
Can you solve this in linear time and space complexity?

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