Tamarindo Airlines wants to give a first-class upgrade coupon to their top
lognfrequent flyers, based on the number of miles accumulated, where
nis the total number of the airlines’ frequent flyers. The algorithm they
currently use, which runs inO(nlogn) time, sorts the flyers by the number
of miles flown and then scans the sorted list to pick the top lognflyers.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here