Being passive aggressive in an interview will never get you the job. Huge red flag on the hiring side. If you don'the like the interview style enough to not want the job, just politely leave.
Why be rude to the interviewer even if that is the case? What does such juvenile rudeness accomplish?
Is it genuinely offensive to be asked the complexity of bubble sort? If such a question causes you so much offense that you lash out involuntarily, then you have some serious personal problems to work out.
Is it genuinely offensive to be asked the complexity of bubble sort?
Offensive, no. Just trite and tedious.
And more fundamentally, simply not indicative of the high quality, (genuinely) cerebral environment the interview subject, back in the original article, is looking for.
Why be rude to the interviewer even if that is the case?
I get that it's generally better to be polite. But when the same kinds of tedious and disspiriting (and sometimes downright condescending, and/or simply time-wasting) behaviors come down the interviewing pipe, over and over again... I can understand the temptation to bypass decorum, and allow a gut-level, emotional response to surface.
Being as while we might generally prefer to keep things professional -- we're not potted plants, either.
Literally two seconds on Github will prove out that, yes, I can write code. That means we should be talking about something substantiative rather than wasting my time. So turn it around: why should I respect an interviewer who isn't respecting me?
(I should note that, as a consultant, nobody ever asks me to whiteboard some code for them, despite often committing into their own repos and doing work that is no less important to them as a company. Almost like the hoop jumping is just some power-move crap on the part of the interviewer.)
I've given interviewers a piece of my mind before. Frankly, most interviewing practices, even at places which allegedly are highly selective, boil down to 100% cargo-culting, and when I encounter that I have no issue with telling the interviewer that and hanging up or walking out. At that point in the interview I'm not there to validate their approach or make sure they feel good; I'm there to communicate to them what I know, and what I know -- from experience -- is how useless most of the common interview processes are.
Put it this way: stupid people on a power trip can say some stupid things when they're angry at having their authority challenged. I've relayed those things word for word on to the non-technical boss when they subsequently come into the room to ask 'team fit' questions.
It's more effective when you're over-the-top polite when you set the trap with leading questions though.
Trolling gives me a bit of mild amusement in what is otherwise a dud investment of my time. The only people who seem to have a problem with that are people who have an exaggerated respect for authority figures (always unhealthy).
If, on the other hand, the interview process is obviously relevant to the job at hand and thorough I go out of my way to compliment the interviewer to their boss even if I know I failed.
If you're being passive aggressive, you've already signaled that you don't want it but you are taking the opportunity to point out to the interviewer how small-minded they are to make them reflect on the fact that they wasted their time as well as yours.
Politely leaving without saying anything doesn't improve the situation for anyone. These pop-quiz questions need to be stopped.
If you're happy to allow fellow humans to continue along a poor path, sure. I believe in establishing feedback loops and giving people opportunities to grow.
Tongue-in-cheek aside, of course passive-aggressive isn't the ideal path to improving interview processes. :P