Adobe | CS 1 | Noida | 2025 - Reject

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-05-04Added By Anonymous
Source: Link

Previous Experience: SDE 2 at EDA (4 YOE)


Recruiter reached out in Linkedin.


Both rounds happened in same day.


Round 1 - Coding

Question 1 - https://www.naukri.com/code360/problems/order-of-people-heights_1170764

There are ‘N’ people numbered from 0 to N - 1, standing in a queue. You are given two arrays ‘Height’ and ‘Infront‘ consisting of ‘N’ non-negative integers. ‘Height[i]’ gives the height of the ith person, and ‘Infront[i]’ gives the number of persons who are taller than the ith person and standing in front of the ith person.

Your task is to find out the actual order of people in a queue. You should print ‘N’ integers where the ‘ith’ integer is the height of the person who should be at the ith position from the start of the queue.


Note :

1.Consider that all elements in array ‘Height’ are unique.
2.It is guaranteed that a valid order always exists for the given array ‘Height’ and ‘Infront’.
3.Example : Let there are 6 people, their heights are given by array ‘Height’ : [5, 3, 2, 6, 1, 4], and the number of people in front of them is given by array ‘Infront’: [0, 1, 2, 0, 3, 2]

Thus the actual order of people’s height in the queue will be [5, 3, 2, 1, 6, 4]


Was required to write a working code. Solved it by first sorting and then doing a traversal of O(n^2). Interviewer seemed happy with the time complexity.


Question 2 -

https://leetcode.com/problems/longest-valid-parentheses/description/

No working code was required just discussed the approach.


Round 2 - Coding

Question 1 - https://leetcode.com/problems/kth-smallest-element-in-a-bst/description/

Solved it using recursive approach.


Question 2 - https://leetcode.com/problems/longest-substring-without-repeating-characters/description/

Solved it using Hash Map approach.


Question 3 - https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/

Explained the approach using traversal but interviewer asked to do it using recursive approach, solved it.


Post Interview:

I was suppose to get an update post 24 hours of interview. But no updates. After 9 days the recruiter informed my feedback was not positive.

This came as a surprise as both the rounds went well. This is certainly the most difficult time for me. For past 8 months I'm giving interviews but no luck. Sometimes not able to clear technical rounds, or sometimes even after clearing all interview rounds didn't get the offer letter. This time was hoping to get selected for further rounds but faith had other plans. Fingers crossed, hope this time shall soon pass.


Thanks for Reading.

Comments