Basic, HR called and allotted a time for interview.
Interviewer was highly experienced and helped a little for me to see if I could answer or not.
I couldn't answer both questions in optimal way yet developed naive solution to both.
Q1. A street contains few light lamps with given intensity, we need to tell minimum bulbs required to light up the street. No. denotes the intensity of light, how many blocks it can light up along with itself. 0 -> lights up only itself 1-> lights itself as well as 1 before it and 1 after it. and so on. -1-> faulty lamp
e.g. Input [1,0,2,2,-1,1] output minimum 2 street lamps are required to light this up. Explanation, only street lamps at index 2 and 5 are required to light whole street as their intensity can light other blocks as well.
Q2. Maximum area under a histogram Input : 2,1,4,5,3,2 (height of bar) output : 8 block area is maximum created by 4,5 values at index 2,3. Area is 2*4 blocks wide.
The following metrics were computed from 1 interview experience for the PayU SDE-2 Backend role in New Delhi, India.
PayU's interview process for their SDE-2 Backend roles in New Delhi, India is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for PayU's SDE-2 Backend interview process in New Delhi, India.