Just For Fun.......
-
Nishant Sivakumar wrote:
That's how I mentally pictured a fence :)
A fence made entirely of posts? Yeah, i could see that... but it'd get real pricey (unless you were building it in the middle of a heavily wooded area and could just cut your own posts as-needed). Have you seen many of these?
---- Scripts i’ve known... CPhog 1.0.0.0 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.2 - printer-friendly forums Expand all 1.0 - Expand all messages In-place Delete 1.0 - AJAX-style post delete Syntax 0.1 - Syntax highlighting for code blocks in the forums
-
No. The setup for that type of question is: "you have X posts, that need to be spaced D distance apart (for the cross peices). How long of a strait fence can you make?" The common wrong anser is X*d. The correct answer is (X-1)*D. If you're confused about why, set X = 2, and draw the fence |-|. This's why an off by one error is also called a fencepost error.
dan neely wrote:
off by one error
That's an OBOB* in my lexicon.:-D (Appologies to our mascot!) *OBOB: Off-By-One Bug. A common error in looping/counting algorithms. 'til next we type... HAVE FUN!! -- Jesse
-
dan neely wrote:
off by one error
That's an OBOB* in my lexicon.:-D (Appologies to our mascot!) *OBOB: Off-By-One Bug. A common error in looping/counting algorithms. 'til next we type... HAVE FUN!! -- Jesse
Obi-one
Some of us walk the memory lane, others plummet into a rabbit hole
Tree in C# || Fold With Us! || sighist -
Obi-one
Some of us walk the memory lane, others plummet into a rabbit hole
Tree in C# || Fold With Us! || sighist:laugh::laugh::laugh: 'til next we type... HAVE FUN!! -- Jesse
-
A carpenter was in a terrible hurry. He had to work as quickly as possible to cut a very heavy 10 foot plank into 10 equal sections. If it takes 1 minute per cut, how long will it take him to get the 10 equal pieces? "C++ will solve any problem."