Speaking as a newly hired entry-level programmer, I think this post is completely ridiculous. I wasn’t able to answer your FizzBuzz question very quickly (although the logic of it was obvious), but I was recently hired by the IT division of a top I-banking company anyway. What’s more, I don’t think they cared if I could code that well yet. What’s more than more, I think they were correct not to.
I’ll be honest, I didn’t think I would get the job. I’m not even a CS major (Math major, CS minor). But they hired me because I’m smart and demonstrably trainable, and have passions outside academia. Basically, I represent a low risk. They can train me however they need to and feel comfortable in the belief that I will be able to contribute. But the fact that they have to train me is not my fault. Schools don’t teach students how to code anymore, don’t you all know that? How can an institution like that keep up with all the changes in programming that happen so, so fast. Do you know how much php, ajax, C, C++, perl, FORTRAN, COBOL, or Ruby I was taught? None, nada, zilch. It was “on me” to learn these languages if I needed them for an assignment, which was rare. The only thing I was taught was Java, and not very much of it.
However, what I WAS taught was theory and architecture. Heaps, stacks, linked-lists, graphs, hash-tables, classes, inheritence, search trees, Big-O, min-cuts/max-flows, database management, logic and set-theory, optimization, and all the basics of data architecture. Hell, I know more Assembly than I do C++!
This knowledge spans all disciplines within computer science and any language. I might’ve gotten a job designing websites for a 2.0 or helping to manage a database for a bank. There’s just no way to know how I was to focus my college studies, so I was given the big picture instead. I think this will work, I’ll find out for sure soon enough.
Java:
String s[] = {null,null,"Fizz",null,"Buzz","Fizz",null,null,"Fizz","Buzz",null,"Fizz",null,null,"FizzBuzz"};
int i = 0;
for (int count = 1; count =100; count++)
{
if (i 15)
{
if (s[i] == null)
System.out.println(count);
else
System.out.println(s[i]);
}
else
i = 0;
i++;
}