Airfare Grants

Question

Solution

Idea

The behind idea of this problem is Linear Search. Since the list is unsorted, we can only use linear search to find the maximum and minimum. After that, the logic is simple.

Code

https://github.com/mendax1234/Coding-Problems/blob/main/kattis/airfaregrants/airfaregrants.c

Last updated