Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can you tell the best sightseeing spot in one pass (ie. as you iterate over the input?) What should we store or keep track of as we iterate to do this?
Solve with full IDE support and test cases