Problems
Contest
Discuss
Interview
Online Interview
Assessment
Store
Redeem
Premium
For you
For you
Create
Most Votes
All Time
Newest
No search result
Create
Amazon | OA 2021 | Modified 2 sum & Prime air routing question
Anonymous User
5694
Amazon
Online Assessment
Interview
Had one question on the lines of 2 sum but there could be multiple results possible and we have to return the result pair that had the bigger integer.
Second questions was given a list of forward routes and reverse routes and the maxTravelAllowed: return the most optimal pairs
example: maxTravelDist = 10000
forwardRouteList[] = [1,3000],[2,5000],[3,7000],[4,10000]
returnRouteList[] = [1,2000],[2,3000],[3,4000],[4,5000]
O/p: [[2,4],[3,2]]
6
6
Comments (6)
Sort by:
Best
Comment
1
Explore
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States