March 19th, 2004, 4:16 pm
There are quite a lot of books on STL and data structures, perhaps even too many.Asking for tips is wise, and seeing questions is much the same as taking a mock exam. Using them to direct attention to things you need to revise is a good discipline. However, you were also asking for the answers, which invites the idea that you just want to bluff, whether it is true or not.I don't see it as a moral issue as much as a practical one, but rather than criticise, I offer Good C++ questions as a set of real problems you should master.This bug is the sort of thing you might be asked, and mastering it, will make you better at getting a job as well as keeping it.This is a popular site, so it ain't that unlikely that a lazy interviewer will print it out and ask you to solve it.One could even argue that someone who was professional enough to seek out hard problems and know the answer rather than working it out is a better employee. We are paid to make problems go away, and when you know the answer you are more productive.