This file contains 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 characters
U-Boot SPL 2020.01-00613-gd7bb6aceb2 (Jan 16 2020 - 18:34:54 -0600) | |
DRAM: 64 MiB | |
Trying to boot from MMC1 | |
U-Boot 2020.01-00613-gd7bb6aceb2 (Jan 16 2020 - 18:34:54 -0600) Allwinner Technology | |
CPU: Allwinner V3s (SUN8I 1681) | |
Model: Lichee Pi Zero | |
DRAM: 64 MiB |
This file contains 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 characters
// Loosely inspired by http://interactivepython.org/courselib/static/pythonds/Recursion/DynamicProgramming.html | |
// However, used different data structure for coin choices and entirely different language + program structure. | |
void main() { | |
coins(10,2,3); | |
coins(10,5,7); | |
coins(0,1,3); | |
coins(100,8,7); | |
coins(-4,5,7); |