A disc is spinning on a spindle, and you don't know which way. You are given a set of pins. Describe how you would use them to determine which way the disc is spinning?
Why don't C++ arrays have an easy way to check their size?