For an explanation, refer to the respective solutions submitted by Jer and Brian Smith here and here.
blackjack
flooble's webmaster puzzle