so,what is the output for
aaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaa
thanks
Search found 7 matches
- Wed Mar 10, 2004 10:00 am
- Forum: Volume 101 (10100-10199)
- Topic: 10192 - Vacation
- Replies: 58
- Views: 16348
- Tue Feb 24, 2004 9:24 am
- Forum: Volume 5 (500-599)
- Topic: 571 - Jugs
- Replies: 24
- Views: 13275
571 - Jugs
I got TLE for this problem by using brute force ,is there anyway to imporve it? More over,the problem said that when either of the jugs containing exactly N gallons of water ,you can show the result .But in the example output ,the result is shown only when jug B has N gallons of water .Pls explain f...
- Tue Feb 10, 2004 7:29 pm
- Forum: Volume 2 (200-299)
- Topic: 250 - Pattern Matching Prelims
- Replies: 15
- Views: 8552
- Sat Feb 07, 2004 4:54 am
- Forum: Volume 2 (200-299)
- Topic: 269 - Counting Patterns
- Replies: 13
- Views: 5937
- Fri Feb 06, 2004 4:40 pm
- Forum: Volume 2 (200-299)
- Topic: 269 - Counting Patterns
- Replies: 13
- Views: 5937
[269 ]Counting Patterns ,TLE
I got TLE in this problem ,what's the algo for it,just only burte force?
- Wed Feb 04, 2004 8:23 am
- Forum: Algorithms
- Topic: [Q]Sorting
- Replies: 3
- Views: 1301
[Q]Sorting
Is there an algo to sort a sequence using only two stacks (with Push() and Pop()method ). Pls help me.
- Fri Jan 30, 2004 4:53 am
- Forum: Volume 2 (200-299)
- Topic: 211 - The Domino Effect
- Replies: 7
- Views: 3793
211
I use DFS for this problem but it was very slow to get the result. What's the best solution for this problem