Click here to Skip to main content
15,881,876 members

Comments by sbarnes (Top 8 by date)

sbarnes 5-Jul-21 15:59pm View    
Thank you, CHill60. All helpful points I didn't know or really think about. But next time, if I'm trying to guess why I get down counts I'll keep my mouth shut. Better to speculate and say nothing than to know why. Oh, and another two 16 point down counts. Boy, I really pissed someone off. What prevents a Code Project member with powerful privileges from attacking someone daily until they exhaust your reputation? Now there's an automation article that we would all like to see. Thank you again CHill60 for being genuinely helpful.
sbarnes 3-Jul-21 21:19pm View    
Maybe. I think Dave Kreskowiak probably has the better argument. At least it may explain two down counts of 16 points on both my solutions. Good to know for the future.
sbarnes 3-Jul-21 21:17pm View    
I can see your point. Professors are SO lazy. I'll shy away from questions that look like homework. Thanks for letting me know. Down another 16 points on this solution.
sbarnes 28-Dec-20 16:43pm View    
Good observation and answer. But I got the impression https://www.codeproject.com/script/Membership/View.aspx?mid=14631234
was asking about limits and the like. What goes wrong when n gets too big? What is too big and why? But, yes, as a practical matter your shorter way is more performant.
sbarnes 20-Dec-20 16:53pm View    
This is really the best, most straight forward answer. A little trig does the rest.