4 ms·
Depends on how the whiteboard is meant to be used. It must be perfectly fine if it's meant to draw figures and overall ideas about the solution. That's what wh
by drdaeman 10y ago
Depends on how the whiteboard is meant to be used.
It must be perfectly fine if it's meant to draw figures and overall ideas about the solution. That's what whiteboards are for. Sometimes a picture's worth a thousand words, and drawing diagrams or illustrations is frequently indispensable for actually solving a complex problem (as opposed to having a picture in the head, or described in writing).
But I'd say it's borderline offensive to ask a person to write any realistic code (i.e. not very-high-level pseudocode that's more of a human-readable notes than something for a machine) on a whiteboard.
Never been to Google, so no idea what they ask for.
- mashlol 10y agoThey ask you for code. Real, runnable code. The interviewer types it verbatim from what you wrote on the board... I don't think they necessarily care if it compiles, or if you forgot whether it was Set.has() or Set.contains(), but for some reason they do not allow pseudocode.