MCPcopy Create free account
hub / github.com/WomenWhoCodeNYC/Algorithms / Solution

Class Solution

challenges/lemonadeChange/solutions/lemonadeChange.cpp:11–45  ·  view source on GitHub ↗

Solutions is derived from two assumptions: 1. When recieving $20 bills, giving back $15 in change using one $5 and one $10 is preferable over three $5 because you will have more $5 bills left over 2. $5 bills are more valuable because they can be given back when the change is $5, $10, and $15 https://leetcode.com/problems/lemonade-change/discuss/295786/The-answer-why-greedy-is-correct-here

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected