Programming challenge.

Sep 27, 2012 13:40



Implement a program USING TAIL RECURSION that will answer the following question: Your inputs are a non-negative int representing a sum of money and an array of positive ints representing possible coin denominations. You need to tell how many different ways of producing the given sum of money using given denominations are. For example given 4 and ( ( Read more... )

Leave a comment

Comments 2

vgramagin September 27 2012, 18:10:07 UTC
На интервью в гугл готовишься? :-)

http://habrahabr.ru/post/109384/

Reply

dimon37 September 27 2012, 18:23:34 UTC
Нет, беру класс по Скале в coursera.org. Там tail recursion не требуется, это я просто ради интереса.

Reply


Leave a comment

Up