Skip to content

DP coin change problem in C++ #99

@find3rskeeper

Description

@find3rskeeper
Contributor

Title:

Coin change Problem
https://www.interviewbit.com/problems/coin-sum-infinite/

Body:

You are given a set of coins S. In how many ways can you make sum N assuming you have infinite amount of each coin in the set.

Note : Coins in set S will be unique. Expected space complexity of this problem is O(N).

Example :

Input :
S = [1, 2, 3]
N = 4

Return : 4

Explanation : The 4 possible ways are
{1, 1, 1, 1}
{1, 1, 2}
{2, 2}
{1, 3}

I am working on this problem

Activity

gktejus

gktejus commented on Oct 2, 2018

@gktejus

I would like to work on this issue!

find3rskeeper

find3rskeeper commented on Oct 2, 2018

@find3rskeeper
ContributorAuthor

Hey I created an issue for myself. I wanted to contribute in this. :)

ayerhs7

ayerhs7 commented on Oct 1, 2020

@ayerhs7

I have solved this issue. Please let me contribute :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Issue is specific to c++good first issueGood for newcomershacktoberfestFor issues and PRs done during hacktoberfest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @find3rskeeper@tstreamDOTh@gktejus@ayerhs7

        Issue actions

          DP coin change problem in C++ · Issue #99 · Asiatik/codezilla