Search found 101 matches

by kenbrooker
Mon Apr 22, 2019 2:27 am
Forum: Clarifications on Project Euler Problems
Topic: Clarification on Project Euler Problems...
Replies: 2
Views: 20

Clarification on Project Euler Problems...

ok... I give up... Why are so many Project Euler problem solutions
qualified as mod (10^9 + 7 [or + 9])??
by kenbrooker
Wed Mar 06, 2019 8:35 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 008
Replies: 96
Views: 16432

Re: Problem 008

I am just as "guilty" by finding jaap's post last instead of in the first place...
by kenbrooker
Wed Feb 27, 2019 6:39 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 008
Replies: 96
Views: 16432

Re: Problem 008

Thanks sjhillier and I agree with your feeling that the wording is not necessarily misleading if one keeps in mind that the problem refers to a "number" , not to a two-dimensional array... Or, as jaap posted, 4 years ago, to the nearest day -- Re: Problem 008 Post by jaap » Thu Feb 26, 2015 4:08 am...
by kenbrooker
Tue Feb 26, 2019 11:48 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 008
Replies: 96
Views: 16432

Re: Problem 008

Absotively , although, without checking, 9989 may also appear elsewhere (or even 9999) "adjacently," only because the 1000-digit number is not presented as a number , "consecutively" and "contiguously(?)"... IOWords, IMHOpinion, your rewording is... Superior Freiling :) I guess an Administrator may...
by kenbrooker
Wed Jan 30, 2019 8:59 pm
Forum: Programming languages
Topic: Learning HTML & CSS...
Replies: 0
Views: 574

Learning HTML & CSS...

If interested, Geeks4Geeks today announced a free, online tutorial, in a one-week format,
by which to learn HTML and CSS at:

https://www.geeksforgeeks.org/introduct ... st-1-week/
by kenbrooker
Mon Jan 28, 2019 7:22 am
Forum: Recreational
Topic: Suggest me a book
Replies: 13
Views: 4374

Re: Suggest me a book

So happy to see my name disappear as "LAST POST"er on several topics...
Otherwise I look like a... Conversation Killer... :(
by kenbrooker
Thu Jan 24, 2019 4:28 am
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1269

Re: Weird runtime behavior

Final (Anti-Climactic) Report: The "Original" and "Improved" codes find the 10 millionth prime number (179,424,673) in 3,929 and 3,928 seconds, respectively; so, at least the "All New and Improved" code is not slower(!!) but, it's not exactly "Improved" either; and, still being surprised only shows...
by kenbrooker
Wed Jan 23, 2019 8:27 pm
Forum: Recreational
Topic: Suggest me a book
Replies: 13
Views: 4374

Re: Suggest me a book

Thanks elissasmart , and Great books on the... Limits of Math: Godel's Proof by Ernest Nagel and James Newman with a new Foreword by Douglas Hofstadter 2001 :D :D :D :D :D A World Without Time - The Forgotten Legacy of Godel and Einstein by Palle Yourgrau 2005 :D :D :D :D When Einstein Walked with G...
by kenbrooker
Wed Jan 23, 2019 7:11 am
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1269

Re: Weird runtime behavior

Thanks! rayfil ... "Assuming" I understand you right: 1) In the "Original" algorithm I was disregarding further processing of all even numbers, but only at the expense of first executing "else if(i % 2 == 0) return false;" for every even number, which, though relatively quick, I'm sure (You are way...
by kenbrooker
Tue Jan 22, 2019 6:13 pm
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1269

Re: Weird runtime behavior

Thanks LilStalker...

I agree the discrepancies are small but they are still in the Dead Wrong Direction to my way of thinking...

As you suggest I will try longer runtimes, possibly requiring BigInteger...
by kenbrooker
Tue Jan 22, 2019 6:45 am
Forum: News, Suggestions, and FAQ
Topic: Weird runtime behavior
Replies: 8
Views: 1269

Re: Weird runtime behavior

I've noticed from time to time in the past that my RunTimes have counterintuitively increased rather than decreased. In checking out the RoseCode WebSite, via their Problem #1, I have experienced it again and, even in this very simple, straightforward example, I can't figure out -- Why? Here's the ...
by kenbrooker
Mon Jan 21, 2019 9:35 pm
Forum: Recreational
Topic: A puzzle
Replies: 2
Views: 211

Re: A puzzle

Thanks for the introduction to
RoseCode (and WeChall)!!
by kenbrooker
Sat Jan 12, 2019 10:35 pm
Forum: Clarifications on Project Euler Problems
Topic: Problem 196
Replies: 34
Views: 8940

Re: Problem 196

There are indeed 19, if that helps...

oops - Was confirming that
with the Reply box open
while jaap replied...
by kenbrooker
Thu Jan 10, 2019 6:45 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3386

Re: Code optimization techniques

Final Report on my goal of an automated Stack History for Fibonacci by Memoization, the complication for me being Memoization's use of a "lookup" table or cache, and I wish to first thank MHealy and v6ph1 without whose generous insight I'd still be struggling late into the night(s)... Outputting on...
by kenbrooker
Sun Jan 06, 2019 1:35 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3386

Re: Code optimization techniques

PROGRESS REPORT: Reminder -- My final goal is an automated Stack History for Fibonacci by Memoization but... For the simplest Fibonacci by Recursion -- int fib(int n) { if (n <= 1) return n; else return fib(n-1) + fib(n-2); } As a first step toward a Stack History, simply inserting System.out.print...
by kenbrooker
Fri Jan 04, 2019 12:44 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3386

Re: Code optimization techniques

Finally, a BRIEF Post to confirm my progress toward an automated Stack History -- I'm confident that the correct Stack History looks like this -- STACK: (Top to the Right) ******* m(45) m(45)1, m(9) returns 27 m(45)1 m(45)2, m(27) m(45)2, m(27)1, m(5) returns 15 m(45)2, m(27)1, m(45)2, m(27)2, m(15...
by kenbrooker
Thu Jan 03, 2019 9:01 am
Forum: Clarifications on Project Euler Problems
Topic: Problem 027
Replies: 15
Views: 4030

Re: Problem 027

If I understand your question, I know proof by example is not a proof but
I, for one, only find one solution for |a| < 1000 and |b| <= 1000
(in 8 seconds)... Hope that helps...
by kenbrooker
Thu Jan 03, 2019 2:56 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3386

Re: Code optimization techniques

Excellent Idea!! v6ph1 ... The evidence was there all along and I changed my code accordingly and your annotations in red are most clear and helpful... I'm hoping it's still possible to write code to generate the exact same lengthy Stack History that you kindly provided... So far I'm fairly success...
by kenbrooker
Wed Jan 02, 2019 2:36 am
Forum: News, Suggestions, and FAQ
Topic: Code optimization techniques
Replies: 20
Views: 3386

Re: Code optimization techniques

Dear v6ph1 ... Sincerest thanks for your conspicuous patience in replying with such clarity, via precision, in such a necessarily long reply and, no doubt, with 100% accuracy... I guess I was fooled by my "printFun" and PE517 examples into thinking that, with sufficient print statements, I could tr...