1. Since you know that there are at most 25 different priorities, you could get by with an array of only 25 ordinary queues plus a second array of integers called value. The number in value[i] would be the priority of all the items in queues[i]. It might also make sense to keep the arrays sorted according to priority.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here