You can look at the sample solution at the Waterloo site (google for it). It is a quadratic time complexity solution. They missed a crucial observation to make it linear, but it is not very hard to find.
Can you give me the address of the website? There's so much websites called "Waterloo ...
Search found 91 matches
- Fri Jul 20, 2007 3:21 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11240 - Antimonotonicity
- Replies: 33
- Views: 16931
- Sun Jul 15, 2007 4:31 pm
- Forum: Volume 112 (11200-11299)
- Topic: 11240 - Antimonotonicity
- Replies: 33
- Views: 16931
- Fri Mar 02, 2007 10:17 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11181 - Probability|Given
- Replies: 8
- Views: 4236
- Fri Mar 02, 2007 8:50 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11181 - Probability|Given
- Replies: 8
- Views: 4236
- Tue Feb 27, 2007 9:44 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11181 - Probability|Given
- Replies: 8
- Views: 4236
- Sun Feb 04, 2007 2:05 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11159 - Factors and Multiples
- Replies: 19
- Views: 15518
- Wed Jan 31, 2007 10:01 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11159 - Factors and Multiples
- Replies: 19
- Views: 15518
- Sat Dec 30, 2006 9:19 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11150 - Cola
- Replies: 43
- Views: 30304
- Mon Sep 11, 2006 8:49 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11093 - Just Finish it up
- Replies: 14
- Views: 11125
- Mon Sep 11, 2006 8:33 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11093 - Just Finish it up
- Replies: 14
- Views: 11125
- Sun Sep 10, 2006 3:10 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11084 - Anagram Division
- Replies: 19
- Views: 11682
- Mon Sep 04, 2006 5:48 pm
- Forum: Algorithms
- Topic: Dynamic Programming Problems
- Replies: 4
- Views: 3213
Re: Dynamic Programming Problems
Can anyone give me problems that use dynamic programming, I need to practice:)
Thanks in advance
http://acm.uva.es/p/v110/11003.html
http://acm.uva.es/p/v110/11008.html
http://acm.uva.es/p/v110/11022.html
http://acm.uva.es/p/v110/11069.html
http://acm.uva.es/p/v110/11081.html
Also look at http ...
Thanks in advance
http://acm.uva.es/p/v110/11003.html
http://acm.uva.es/p/v110/11008.html
http://acm.uva.es/p/v110/11022.html
http://acm.uva.es/p/v110/11069.html
http://acm.uva.es/p/v110/11081.html
Also look at http ...
- Sun Sep 03, 2006 7:09 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11081 - Strings
- Replies: 35
- Views: 25620
Re: Lack of certain input?
my solution outputs 1.Vexorian wrote:If I am not mistaken, for the case:
1
aaa e e
The output should be 1, right?
- Fri Sep 01, 2006 3:46 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11072 - Points
- Replies: 24
- Views: 18077
Re: Those all pass.
noEcou wrote:You have a double point (2,2) in the first testcases for set1. if i remove
that i get the exact same output. Got any more?
- Fri Sep 01, 2006 1:02 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11072 - Points
- Replies: 24
- Views: 18077