ENG
RUS
Timus 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
1198
. Jobbery
Best complexity
Posted by
Alexandru Valeanu
5 Jan 2014 13:44
The complexity of the optimal algorithm is O(N + M), because the input is not O(N ^ 2) is O(M).
© 2000–2024
Timus Online Judge Team
. All rights reserved.