ADOBE CS interview Noida C++
Anonymous User
3788

Recently I had a very bizzarre interview experience at Adobe. 2 rounds were scheduled in a day.

R1:

2 questions. First one invlved backtracking. Second one was focussed on getting the minimum value from a data structure and modifying it (i.e., by using minHeap). This round went well. though I struggled a bit, but was able to solve it. Although, this was on hackerrank... I wrote the code using priority_queue, but only 13 out of 15 cases passed... And the interviewer did not have access to those test cases. When I asked him, i cannot see the test cases which are fialing, how do I check... he told me he himself cannot see the test cases and cannot help... but forced me to write the correct code. Weird.

R2:

This round was with a more senior person (13 - 15 YOE). And this guy asked me questions which are as follows:

1: Identify whats wrong with the function ignoring the logic of what the function does.

void functionName(int a, int b)
{
	int p = a + 100;
	int q= b + 200;
	...
}

The only thing (ignoring the logic ofc), was that we can make variables const and & (reference, although it does not make much sense to reference int). Then he goes on by saying that you need to have a descriptive function name and variables. I told him it only makes sense to have a better function name and variables if I knew what the function was doing. But you told me to ignore the logic.

2: Anyways, question 2 was when do you decide you want to use class or struct.

I told him they are almost similar except for the default public and private nature of the member functions and variables. He told me, structs dont have member fuctions, they can never have... and you cannot specify public or private in a struct, meaning they are always public data... To which I told him that he might be wrong or I might have misunderstood the question. But he was fixated onto that... weird... as structs can have member functions and can contain both public and private AFAIK.

  1. Another question was based on strings, but I was able to do that.

In my opinion.... the seond round was a total waste of my time... I was expecting more high level design questions from someone from that YOE....

Nevermind... got rejected.

Comments (3)