Search found 7 matches

by rfcotta
Sun Apr 13, 2003 6:28 pm
Forum: Volume 3 (300-399)
Topic: 346 - Getting Chorded
Replies: 19
Views: 8246

hmmm.... so I give up!
by rfcotta
Sun Apr 13, 2003 10:34 am
Forum: Volume 3 (300-399)
Topic: 346 - Getting Chorded
Replies: 19
Views: 8246

346 - Possibly something wrong with data

Hi all,

I've been trying to solve the Get Chordered problem, with no success.

After some "googleing", I found an answer to this problem, and compared the output produced by my program with the other one. For my surprise, I found these two lines were different:

***** My program
cb Eb Gb is a B ...
by rfcotta
Thu Dec 12, 2002 11:46 pm
Forum: Volume 101 (10100-10199)
Topic: 10126 - Zipf's Law
Replies: 36
Views: 12824

Big arrays MUST be global. If you declare them locally you'll use the stack and will probably have problems.

Rafael Cotta
by rfcotta
Thu Dec 12, 2002 3:29 am
Forum: Algorithms
Topic: Finding the heavier rectangle
Replies: 10
Views: 5228

Best algorithm to do this (108)

Well, this one Pedro Demasi teach me. Maybe I am forgetting something on the way, but that's the main idea..

Consider the linear case. You can find the greatest value on a submatrix in the following way:

1. The best you can get on the first position, is its own value
2. Go right. If what you had ...
by rfcotta
Mon Aug 12, 2002 12:46 am
Forum: Volume 8 (800-899)
Topic: 843 - Crypt Kicker
Replies: 51
Views: 35568

Adrian Kuegel wrote:Each letter must be decoded uniquely, that means that if the coded word is ab, the decoded word can't be cc.
This sample is better:

input

2
ac
ad
xy kz cv

output

ac ad **

----
"a" appears as "x" and "k". Is it ok?
by rfcotta
Mon Aug 12, 2002 12:43 am
Forum: Volume 8 (800-899)
Topic: 843 - Crypt Kicker
Replies: 51
Views: 35568

Each letter must be decoded uniquely, that means that if the coded word is ab, the decoded word can't be cc.

And that's what I do! If input gives me "ac" and the dictionary "xy", "xy will appear on output only if a new "ac" appears. That's right, isn't it? a sample follows.

input

2
ac
ad
xy xz ...
by rfcotta
Mon Aug 12, 2002 12:14 am
Forum: Volume 8 (800-899)
Topic: 843 - Crypt Kicker
Replies: 51
Views: 35568

843 - Crypt Kicker

What are the gotchas on problem #843? I am almost sure my program works, but I get WA.

Any idea of something I may be missing?

Go to advanced search