Created
          August 24, 2022 19:45 
        
      - 
      
- 
        Save christopherwxyz/72dcae7dde20a620c20b3547b9f747dd to your computer and use it in GitHub Desktop. 
Revisions
- 
        Christopher Wallace created this gist Aug 24, 2022 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ function solution(coins, quantity) { let s = new Set([0]); for (let i in coins) { for (let entry of [...s]) { for (let j = quantity[i]; j; ) { s.add(coins[i] * j-- + entry); } } } return s.size - 1; } 
 Christopher Wallace
              created
            
            this gist
            
              Christopher Wallace
              created
            
            this gist