Solutions for problems in book " Programming Challenges" . Uvaoj link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=29