I've managed to solve the problem and fix the code (below) but for numbers larger than 400 it becomes very very slow. Any suggestions on how this could be enhanced for larger numbers?
public...
Type: Posts; User: tarkal
I've managed to solve the problem and fix the code (below) but for numbers larger than 400 it becomes very very slow. Any suggestions on how this could be enhanced for larger numbers?
public...
aha... I have found that a good way of isolating a problem is to ad in tempory variables and print them out to see what is happening. Is this generaly an accepted technique?
I'm now 90% sure that the problem is coming from the run()...
Hi sorry for the late reply. here is the class with the main method that instantiates the above class.
public class TriangleThreads {
public static void main(String[] args) {...
Ive writen the following class. The point of the code can be found here Problem 12 - Project Euler.
The code doesn't work!!! But before anybody points out why, I wanted to ask about technics and...