Hi Everyone,
Just wanted to share with you guys that i have completed my Amazon Online Assessment round today. So i thought it would be useful for others to share what type of questions are asked in this Online Asssessment round.
Specifics of the Assessment:
Time alloted: 105 minutes
**2 coding Challenges **
*sorry i don't the remember the description of the problems correctly.
1st Coding Challenge
Inputs : Arraylist ( cars parking space numbers ) and an integer ( k )
i.e., cars= [1,2,3,10] , k=3
Output: minimum car spaces to building a roof over them covering atleast k cars. In the example given , the answer would be 3.
'cars' list will be in unsorted order.
2nd Coding Challenge
Question: We have to find the maximum number of meetings that we can allocate keeping in mind the arrival times and duration of those meetings.
Inputs: Arrival Time = [ 1,3,5 ] , Duration= [ 2,2,2]
Output: 3 ( maximum number of presentations that we can allocate without overlapping )
*This is my first post on leetcode. Let me know how can i eloborate well if above information doesn't make sense. Thanks!!
Happy Learning