16,004,529 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
sbarnes
4-Nov-18 15:39pm
View
Here in Nov. 2018. Simple. Works. I can't believe how this answer could evade me for days and how many complicated bending-over-backwards solutions I tried to pursue.
sbarnes
1-Apr-14 1:53am
View
good succinct useable answer
sbarnes
22-Jun-13 20:46pm
View
Thanks. I always have a question about where to ask a question. But this only raises the question about where you found the answer to where to ask the question. I guess if the answer to that question was already evident here, I wouldn't need to ask the question here. I'd ask where you found this question should be asked but this is probably not the place.
Show More