IPL Auction Highest Bid
IPL Auction Highest Bid
EasySorting16% accepted
Ravi is the auctioneer at an IPL auction. Teams place bids for players and the highest bidder wins. Given bids from different teams, find the winning team and the winning amount.
Approach
Given N team names and their bid amounts, return the team with the highest bid and the bid amount.
Input
3
Mumbai 20 Delhi 15 Chennai 18
Output
Mumbai 20
More Sorting problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards