I can finally report that I got it right. While working on a different problem, I saw how easy it was to scan through a sorted array. I did a bunch of stupid things with that code, using the...
Type: Posts; User: EatMyBible
I can finally report that I got it right. While working on a different problem, I saw how easy it was to scan through a sorted array. I did a bunch of stupid things with that code, using the...
Thanks for the help, I got the big mistake fixed. I still don't get why all of the numbers are set to 0, though. Wouldn't the actions done by this code:
for (int j = 0;j<9801;j++){
for...
Excellent question, I will check that...
when running:
for (int z = 0;z<9801;z++){
if (tabell[z].equals("0"));
teller++;
}
Alright, I am currently working on Euler Problem 29. The problem may be found in its full length here:
Problem 29 - Project Euler
This is the code I was confident would solve the problem:
...