Skip to main content

Timeline for Money change exam

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Dec 4, 2020 at 16:39 vote accept Esteban Rincon
Nov 16, 2020 at 10:31 comment added prl Re "Java does not support tail call elimination", I think what you mean is that it doesn't require it? Presumably a compiler can do it as an optimization if it doesn't change the behavior of the code?
Nov 16, 2020 at 10:30 comment added prl Re "this is exactly what your code is doing", not exactly. OP's code would fail for s = 11, because it would choose $10. Your algorithm would see that it is odd, choose $5, and then choose 3x $2 for the rest.
Nov 15, 2020 at 21:59 history answered vnp CC BY-SA 4.0