Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Count-change
T(0, n) = 1
⎧ 0, m < 0 или n = 0
T(m, n) = ⎨
⎩ T(m, n - 1) + T(m - Cₙ, n), Cₙ - номиналът на n-тата монета, някаква константа
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment