Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
tobe bondhu nouka bherao<br />shonabo gaan aj shara raat
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
So is this the limit? Is it possible to get 10 million down to 20 seconds?
Rob
SCJP 1.4
Thomas, can you provide an official test that verifies there are no duplicates to apply to all candidates?
For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
"I'm not back." - Bill Harding, Twister
For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
Rob
SCJP 1.4
For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
Rob
SCJP 1.4
"I'm not back." - Bill Harding, Twister
Rob
SCJP 1.4
I've already addressed the XOR issue. If you were swapping three local variables it might be faster, but those array accesses are more expensive than the otheractivities, I think.
For a good Prime, call:<br />29819592777931214269172453467810429868925511217482600306406141434158089
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Rob
SCJP 1.4
This implementation traverses the list backwards, from the last element up to the second, repeatedly swapping a randomly selected element into the "current position". Elements are randomly selected from the portion of the list that runs from the first element to the current position, inclusive.
"I'm not back." - Bill Harding, Twister
Thomas Smets
Just another developper
"I'm not back." - Bill Harding, Twister
This tiny ad is guaranteed to be gluten free.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|