C++ Coding Practice #1

Today's coding practice was motivated by a C++ interview challenge question on toptal.com involving arrays:

The Code

Here's the implementation I whipped out in under 5 minutes:

You can compile and run this code with the following commandline:

Dev Notes

Explore More