Live data from Hacker News

Computer Science Interview Questions with C++ Solutions

grokit.ca

71–73 of 73 posts

Re: Computer Science Interview Questions with C++ Solutions

#71

I am just a student but do interview questions come without any concrete problem to solve? Or are they really like "Which data structure would you use for repetitive look-ups?", "Implement FizzBuzz" and so on instead of something like "You need to look up a words in a English dictionary for a spelling program, how would you solve it?".

It depends. In many cases it's impossible to give sufficient context to provide a real-world problem that will let the candidate show their understanding of algorithms and data structures. Sometimes it's necessary to ask these sorts of questions in isolation, without a concrete problem. Not least, sometimes a real world problem is better solved in a different way anyway, which subverts the intent. Understand, most re…

I see, thanks for your perspective on the matter.

Re: Computer Science Interview Questions with C++ Solutions

#72
post #15

Earlier quoted context omitted.

Maybe they're not commonly used in interviews because too few people refuse to take the sort of interviews where they wouldn't be allowed?

And that will continue to be the case, because the overwhelming majority of programmers even in really cutting-edge areas don't need it, so being able to speak Java is still valuable. Knowing how to write code in functional languages has helped me write Java, too.

Depends on how you define 'need' I suppose. I would argue that all areas of programming 'need' to be free of the 'billion dollar mistake' (http://goo.gl/YsywGY) and other classes of errors which are eliminated by the application of functional programming.

Re: Computer Science Interview Questions with C++ Solutions

#73
post #15

Earlier quoted context omitted.

Maybe they're not commonly used in interviews because too few people refuse to take the sort of interviews where they wouldn't be allowed?

And that will continue to be the case, because the overwhelming majority of programmers even in really cutting-edge areas don't need it, so being able to speak Java is still valuable. Knowing how to write code in functional languages has helped me write Java, too.

Also, of course knowing the functional paradigm helps you write code in all languages but why subject yourself to that level of pain? I'd prefer to let the compiler do the compiling and so I choose an expressive language to begin with.
Post reply on HN