Search found 6 matches

by John Herre
Sat Jul 01, 2006 1:21 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

...any help that i can provide.
Of course, I'll be looking for help in case I need it... :wink:

Fayyaz, It was a pleasure to help you. It's cool to see the number 10267 in your personal statistics... :D

jedihe
by John Herre
Thu Jun 29, 2006 6:08 pm
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

hmmm... not looking the right way around every pixel in R

Well, I have read your code, I hand-tested it. I found this problem:

when you are looking for a neighbour pixel for the current one, you must do that this way:


.......
...n...
..nRn..
...n...
.......


But, in the 'worst' case, your search is being performed this way:


.......
..nn ...
by John Herre
Tue Jun 27, 2006 12:32 am
Forum: Volume 100 (10000-10099)
Topic: 10033 - Interpreter
Replies: 88
Views: 39370

I sent my solution to this problem, and I got ACC, but the last test case makes my program infinite-looping... that's weird... but I have no time to test that manually.

jedihe
by John Herre
Fri Jun 23, 2006 5:51 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

by John Herre
Fri Jun 23, 2006 5:47 am
Forum: Volume 102 (10200-10299)
Topic: 10267 - Graphical Editor
Replies: 190
Views: 77325

I've read most of your code, some sugestions:

First:

I don't like - just a matter of taste ; ) - the cin >> comm; that is preceding the main loop, the structure of my program is like this:


flag = true;
do
{
cin >> comm;
if( comm == 'X' )
flag = false;
if( flag && comm != ' ' ) // process ...
by John Herre
Mon Jun 12, 2006 1:40 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70304

I worked the whole day on this problem!

Your suggestions helped me a lot, though I don't understand absolutely the reason the algorithm is the way it is... I was trying a different approach, but didn't work. I'll have to analyze it later, so I can really understand the idea behind the solution ...

Go to advanced search