## Books on Algorithms

Also see my – Problem Books for Pure Math, Physics and Mathematical Physics If you are looking for a recap of C.S. concepts for a hard-core programming interview, look no further than these two books. The first one – Data...

## Recursion versus Looping

Overview In general, whatever problem you can solve with Recursion can also be solved with Looping (iteration). It turns out, that for most use cases, Iteration (looping) performs better than Recursion The problem with recursion...

## Binary tree (count nodes) interview question

Given a LEFT and a RIGHT property that returns the underlying LEFT tree and the underlying RIGHT tree respectively, find the total count of the nodes in the tree. class BinaryTree<T> { private BinaryTree<T>...

## Swapping without a temp variable

Everyone is familiar with the basic swap – using a temporary variable static void RegularSwapUsingTempVariable(ref int a, ref int b) { int temp = a; a = b; b = temp; } The same swap can be...