I have no knowledge of your interview, but if I had been the one interviewing, and if I were to present you with a programming problem such as fizzbuzz, I, most likely wouldn't be looking for a perfect, succinct, or idiomatic solution. FizzBuzz is a problem that can be solved a number of ways. Most common solutions involve a loop, some sort of conditional, some Boolean logic, and understanding of the modulus operator. These are all things that a student in his 2nd week of his first CS course would have had exposure to. An early programming course might ask students to solve the "Making change" problem, which probably involves similar tools.

I would be looking at the process; can this candidate plan an implement an algorithm? Does this candidate know how to access the documentation for the implementation language? What approach is used for verifying the output? If there's a need for debugging, how is it handled? Does it appear this candidate has a clear and logical thought process? And afterwards, can the candidate explain his solution? Can he make good observations as to any tradeoffs he made in his algorithm? Did he code for clarity, for golf, for aesthetics, for cleverness? Were these styles intentional? How does the discussion go? Is he defensive, or open to talking about his code?

There's no single solution, and although it might be a red flag if one were to go too far out on the "cleverness" branch, being able to identify the choices made and discuss them comfortably could also win some points.

An interview is to get to know the individual while also gaining comfort that they can actually do the job. A small programming challenge is only one component of that process.


Dave


In reply to Re: The FizzBuzz Thing :( by davido
in thread The FizzBuzz Thing :( by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.