ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1196. History Exam

My method
Posted by wu hao 28 Jan 2009 02:50
Just use binary search.
Becase the teacher's list is in ascending order.
We can solve the problem in O(mlogn).
Re: My method
Posted by oli666 23 Feb 2009 15:48
We can use binary not if only list in ascending order, but we can sort it in O(nlogn)