Swap the Values of Two Variables Without Using a Third Variable(ajibanda.com)
ajibanda.com
Swap the Values of Two Variables Without Using a Third Variable
http://www.ajibanda.com/2012/05/programmers-interview-101-swap-values.html#.T8WzNpEAKKY.hackernews
1 comments
great find.. I never thought of that..
The real value in this question is to ask a candidate what's wrong with this article. There are just so many things wrong with it that it's a great starting place for any number of technical conversations.
This is particularly good:
What if b==0? How accurate is it if a and b are floats? So many technical launching points.