Timeline for pset1 cash: greedy algorithm coin change round off
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 31, 2020 at 20:47 | comment | added | DinoCoderSaurus | more info added to answer | |
Mar 31, 2020 at 20:47 | history | edited | DinoCoderSaurus | CC BY-SA 4.0 |
+
|
Mar 31, 2020 at 19:20 | comment | added | Riya Gandhi | I meant that the inputted number is not being rounded off. It doesn't count the cents value if you input a dollar in decimal. if it's $11.10, it only counts change for $11. Also, output comes back 0 if the input negative, while I want the output to repeat the question if the input is negative. | |
Mar 30, 2020 at 11:30 | history | answered | DinoCoderSaurus | CC BY-SA 4.0 |