TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

XOR Swap - Stack Overflow for Tech Interview Questions

100 pointsby cloudkjabout 14 years ago

13 comments

Jun8about 14 years ago
Sites like this make me sad. For some reason it reminds me of an article I recently read in the <i>New Yorker</i> about Magnus Carlsen and his comments about how widespread use of chess software and databases is ruining human chess, because people have started to think like the computers. Too much reliance on information, less on originality.<p>Based on my experience, A lot of tech interviews in large companies nowadays are mostly done by young people who have limited understanding of what a good employee is (because more tech savvy guys don't want to waste time with interviews) and who therefore keep asking rote questions like: "how do you shuffle a deck of cards", or (my favorite) "What is the 'mutable' keyword do?" and string matching the answer to the right one in their minds. This in turn has affected the interview preparation process, consisting mostly of memorizing the answers to the rote questions.<p>Which (as the architect in <i>The Matrix</i> said) has led the would-be coders, inexorably, here and similar sites.
评论 #2350216 未加载
评论 #2352737 未加载
评论 #2350811 未加载
gueloabout 14 years ago
I don't see how you can call it a "Stack Overflow for X" if it doesn't have voting.
评论 #2350035 未加载
评论 #2350039 未加载
评论 #2349468 未加载
gaiusabout 14 years ago
Haha, this is just the logical successor to brain dumps <a href="http://mcse-braindumps.net/" rel="nofollow">http://mcse-braindumps.net/</a><p>"if you read our exam dumps Seriously, you will pass the exam 100%"<p>vs<p>"candidates will be able to leap through the common hurdles of technical interviews"<p>These sites do neither candidates nor interviewers any favours.
评论 #2349348 未加载
asymptoticabout 14 years ago
I think this project would be far more useful as a computer-science-version of Project Euler (<a href="http://projecteuler.net/" rel="nofollow">http://projecteuler.net/</a>). People could then compete on full, working implementations of common interview questions in a variety of languages, that must execute on e.g. Codepad (<a href="http://codepad.org/" rel="nofollow">http://codepad.org/</a>), rather than posting what seem to be really wishy-washy, hand-wavy answers to puerile questions.<p>Then, perhaps with strong moderation, only questions that demand some compromises should be accepted. e.g. implement a container that can be traversed both forwards and backwards. What are the complexities of your container? How could you improve X, and what would the cost be? etc.
评论 #2350322 未加载
billybobabout 14 years ago
What's the goal of this site? I'm not sure I'd want to ask someone a question that they may have already read the answer to. When I interview someone, I want to know what they actually know or can figure out with hints, not whether they have Googled for the right list of questions.<p>Edit: oh, even worse, it tags them by the company that asks the question. Great. I'm sure those companies will appreciate having to come up with brand new questions for each candidate. And candidates will really be better off getting in based on memorized answers, then finding themselves unable to solve the actual problems in the job. (sarcasm)
评论 #2349566 未加载
评论 #2349594 未加载
评论 #2349422 未加载
评论 #2350337 未加载
pohlabout 14 years ago
It would be great if the answer(s) were initially obscured so that one could use this site to challenge themself.
评论 #2352355 未加载
CJeffersonabout 14 years ago
I think "XOR Swap" sums up my opinion on most Tech Interview Questions.<p>The only question I would ever ask about the XOR Swap trick would probably be "Give 3 reasons never to use this" (assuming you are in a language as least as high level as C).
评论 #2350984 未加载
jdp23about 14 years ago
Career Cup has been doing this for quite a while -- <a href="http://www.careercup.com/" rel="nofollow">http://www.careercup.com/</a>
jswinghammerabout 14 years ago
Most of the good candidates I have interviewed prepare a lot for interviews already so I doubt this helps them much. All of the bad candidates I have interviewed do no prep work at all so this won't help them either.
评论 #2349979 未加载
sircluelessabout 14 years ago
This site severely needs a way to rate other people's answers or something. Even just to comment on them. Otherwise it's just silly.<p>Case in point: <a href="http://xorswap.com/questions/85-what-is-a-hash-table-how-would-you-implement-one-and-what-is-the-complexit#answers" rel="nofollow">http://xorswap.com/questions/85-what-is-a-hash-table-how-wou...</a><p>No offense to ankur, but his hash function is the silliest hash function ever. It looks intelligent and reasonable and is the kind of answer I would trust if I didn't know better. But what kind of hash function is injective? If I wanted to store arbitrary doubles into his hash table I would need a zettabyte (that is a billion terabytes) of memory. Ooops. I should be able to warn people about that somehow.
评论 #2352904 未加载
statictypeabout 14 years ago
Is this a Stackexchange site? Or a separate unaffiliated site that's, er, heavily influenced by Stackoverflow's ui?
评论 #2349529 未加载
georgieporgieabout 14 years ago
I welcome sites like this. By spreading the answers to these largely contrived questions, perhaps we can get employers to move to methods which actually reveal one's ability to get stuff done and create value.
FameofLightabout 14 years ago
Nice and Simple :)