There were 2 coding questions.
You are given a list of song durations. You are on a journey and given the journey duration.
You have to pick two songs that'll finish 30 minutes before the journey.
Basically, we have to pick two numbers from the songDurations list that sum up to journeyDuration-30.
Approach: - Sort the array.- Find target sum with 2 pointer technique.
https://leetcode.com/problems/two-sum/
The second question was based of finding the closest sum pair from two arrays
I actually solved bot the questions and the received a mail the next morning saying that I'm not selected ..
Did anyone experience the same?Please help