On Thursday, October 9, 2014 2:19:16 PM UTC-4, Robert Hutchings wrote:
> Yes, this is the algorithm that I found most often on the web. Again,
> what relevance does this have to a C++ Dev?
If I were guessing... it demonstrates a fundamental understanding of
how things operate below the C/C++ basic types. It lets them know
that you understand "the philosophy" of data, and not just the
workings of a language.
Perhaps they're thinking that without a solid foundation of the true
CPU fundamentals, anything you would pursue in C/C++ will be built atop
an unknown, rather than a concrete concept (bytes of data, and not C++
constructs like "int" and "char"), and that without this fundamental
tenant the rest will be unstable and shaky?
Perhaps that's their thinking. But, who knows? How does "Why are
manhole covers round?" relate to a developer's ability to write code?
Being creative in understanding an engineering concept doesn't always
translate into the kind of logical and procedural thinking required
to work through some complex algorithm.
Nonetheless, you may never know. In my experience, some interviewers
are just plain weird. :-) I once had an interviewer walk out of an
interview mid-stage because I didn't already know how something would
propagate through a macro during compilation. I told him I could compile
an example of the macro and see how it worked, and in that way understand
it, along with any other macros he'd like to show me. He felt that
already having that knowledge was more essential than being able to
figure out how to obtain knowledge I didn't already possess.
I'll never forget that interview. :-)