Search found 2 matches

by brianschroeder
Thu Oct 24, 2002 8:09 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318615

Sometimes the numbers get so large you will have overflow in an int variable.
by brianschroeder
Thu Oct 24, 2002 8:27 am
Forum: Volume 8 (800-899)
Topic: 838 - Worm World
Replies: 8
Views: 6320

henar, the bug in your program is in your choose function where you have *n_nodes--; it should be (*n_nodes)--;

But now your program has the same problem as mine: it is too slow to pass the judging. There must be a better algorithm, but does anyone know what it is?

-Brian Schroeder

Go to advanced search