Nice generalisation to the given problem, and I confirm having included the same in my solution.
blackjack
flooble's webmaster puzzle