I think you're not giving importance to a little detail:
"4. and repeat these steps unless the new number has already appeared in the chain"
You gotta verify if the number has already appeared on the chain, so, you gotta have a register of each number and search the new number. That's all you need ...
Search found 2 matches
- Tue May 30, 2006 6:07 pm
- Forum: Volume 2 (200-299)
- Topic: 263 - Number Chains
- Replies: 45
- Views: 15468
- Fri May 26, 2006 3:24 am
- Forum: Volume 3 (300-399)
- Topic: 340 - Master-Mind Hints
- Replies: 27
- Views: 13775
340 Compile Error
I can't understand why I got a compile error, this is my code:
import java.io.IOException;
import java.util.StringTokenizer;
/**
* Solucion al problema 340 Master-Mind Hints.
* @author Gabriel Rivera Safadi
*/
class Main {
static String readLine() {
int car = -1;
String s = "";
try ...
import java.io.IOException;
import java.util.StringTokenizer;
/**
* Solucion al problema 340 Master-Mind Hints.
* @author Gabriel Rivera Safadi
*/
class Main {
static String readLine() {
int car = -1;
String s = "";
try ...