All about problems in Volume 126. If there is a thread about your problem, please use it. If not, create one with its number in the subject.
Moderator: Board moderators
- New poster
- Posts: 2
- Joined: Wed Oct 08, 2014 7:16 am
Last edited by OneManArmy
on Tue Oct 21, 2014 5:27 pm, edited 1 time in total.
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
You can solve each test case in O(N + M). What is the complexity of your code?
Check input and AC output for thousands of problems on uDebug