Tip 1 : Be very clear with your project explaination.
Tip 2 : Try to cover all the CS core subjects explaination clearly.
Tip 3 : Be confident with your personality .
Tip 1 : Make it clean with appropriate kowledge.
Tip 2 : Provide accurate information and avoid telling lie in which You are not sure.
It was morning time and from 10:00 am . It happened via the google meet online process and it was very smooth onboarding . Interviewer was very friendly kind of nature .I answered very well and interviewer was also very satisfied with my answers.



Let the array 'arr' be: [1, 0, 1].
Let ‘k’ be: 1
Then the subarrays having the number of ones equal to ‘k’ will be: [1], [1,0], [0,1], [1].
#include
using namespace std;
int countSubStr(char str[])
{
int res = 0; // Initialize result
// Pick a starting point
for (int i = 0; str[i] != '\0'; i++) {
if (str[i] == '1') {
// Search for all possible ending point
for (int j = i + 1; str[j] != '\0'; j++)
if (str[j] == '1')
res++;
}
}
return res;
}
// Driver program to test above function
int main()
{
char str[] = "00100101";
cout << countSubStr(str);
return 0;
}
It was again the afternoon session, and the interviewer was very supportive and gave me a hint too to think the approach, and finally I came up the solution which he was expecting.



[1, 2, 3, 4] is a strictly increasing array, while [2, 1, 4, 3] is not.
int longestSubsequence(int n, int a[])
{
vector v;
for(int i=0; i auto idx = lower_bound(v.begin(), v.end(), a[i]);
if(idx == v.end())
v.push_back(a[i]);
else
v[idx - v.begin()] = a[i];
}
return v.size();
}
It was late evening, and happened in a very smooth way. And I was so happy since I was having the hope to get selected because it really went so well.
What are the different states of a process?
What is Reentrancy?
What is thrashing in OS?
What do you mean by asymmetric clustering?
What do you mean by Sockets in OS?
Tip 1 : Explain all the question of CS fundamentals with good real life examples .

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?