
One trick is for you to work through a specific example with the the problem. That may give crucial insight to the general solution. You should focus on the algorithm you use for the specific example.
Don't be afraid to talk through your thought process. This is actually encouraged. The interviewer likes to hear this. Remember to check for special cases once you think you have arrived at the general solution to the problem.
Know this. The correct solution to a given interview problem is usually very short. Around 10 to 15 lines of code should be sufficient. Therefore if you run out of room on the whiteboard, you are probably headed in the wrong direction. Next time I will cover the basics of Big-O notation.