<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>wall04 by TRUONG Quoc Tuan</title>
      <link>https://padlet.com/qttruong/m9zximydwowumpfo</link>
      <description>Made with panache</description>
      <language>en-us</language>
      <pubDate>2021-08-18 11:08:45 UTC</pubDate>
      <lastBuildDate>2021-11-09 09:07:21 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Juan Sebastian</title>
         <author>jsebastian2020</author>
         <link>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877514695</link>
         <description><![CDATA[<div>a.&nbsp;<br>def find_coins(change):<br>&nbsp; &nbsp; total=0<br>&nbsp; &nbsp; one=0<br>&nbsp; &nbsp; five=0<br>&nbsp; &nbsp; ten=0<br>&nbsp; &nbsp; twenty=0<br>&nbsp; &nbsp; while change!=total:<br>&nbsp; &nbsp; &nbsp; &nbsp; total+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; one+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; if one==5:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; one=0<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; five+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; if five==2:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; five=0<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ten+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; if ten==2:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ten=0<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; twenty+=1<br>&nbsp; &nbsp; return (twenty,ten,five,one)<br><br>b.<br>def find_coins(change):<br>&nbsp; &nbsp; one=0<br>&nbsp; &nbsp; five=0<br>&nbsp; &nbsp; ten=0<br>&nbsp; &nbsp; twenty=0<br>&nbsp; &nbsp; while change!=0:<br>&nbsp; &nbsp; &nbsp; &nbsp; if change&gt;=20:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; twenty+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change-=20<br>&nbsp; &nbsp; &nbsp; &nbsp; elif change&gt;=10:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ten+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change-=10<br>&nbsp; &nbsp; &nbsp; &nbsp; elif change&gt;=5:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; five+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change-=5<br>&nbsp; &nbsp; &nbsp; &nbsp; else:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; one+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; change-=1<br>&nbsp; &nbsp; return (twenty,ten,five,one)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 07:32:17 UTC</pubDate>
         <guid>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877514695</guid>
      </item>
      <item>
         <title>Jonathan</title>
         <author></author>
         <link>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877632838</link>
         <description><![CDATA[<div>4a.<br><br></div><pre>def lowest_coins(change):
    coins = [0, 0, 0, 0]
    coins[0]  = change // 20
    change = change % 20
    coins[1] = change // 10
    change = change % 20
    coins[2] = change // 5
    change = change % 5
    coins[3] = change // 1
    return sum(coins)</pre><div><br></div><div>4b.&nbsp;<br><br></div><pre>def greedy_lowest_coins(change):
    denominations = [20, 10, 5, 1]
    coins = 0
    for deno in denominations:
        while change &gt;= deno:
            change -= deno
        coins += 1
    return coins</pre><div><br></div><div>4c.</div><div>Yes, when the change has fractional cents.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 08:34:28 UTC</pubDate>
         <guid>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877632838</guid>
      </item>
      <item>
         <title>Zuyao</title>
         <author>zuyaoliu2020</author>
         <link>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877685472</link>
         <description><![CDATA[<div>a)<br>def minimal_coins(change):<br>&nbsp; &nbsp;total=0<br>&nbsp; &nbsp;returned=0<br>&nbsp; &nbsp;while returned!=change:<br>&nbsp; &nbsp; &nbsp; &nbsp; returned+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; total+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; if returned%5==0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total-=4<br>&nbsp; &nbsp; &nbsp; &nbsp; if returned%10==0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total-=5<br>&nbsp; &nbsp; &nbsp; &nbsp; if returned%20==0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total-=6<br>&nbsp; &nbsp; &nbsp;return(total)<br><br>b)<br><br>def minimal_coins(change):<br>&nbsp; &nbsp; &nbsp;total=0<br>&nbsp; &nbsp; &nbsp;returned=0<br>&nbsp; &nbsp; &nbsp;while returned!=change:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while (change-20) &gt; 0:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returned+=20<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while (change-5) &gt; 0:&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returned+=5<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total+=1<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; total+= (change-returned)<br>          returned+=(change-returned)<br>&nbsp; &nbsp; &nbsp;return total<br><br>c) no<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp;<br>&nbsp; &nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 09:02:58 UTC</pubDate>
         <guid>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877685472</guid>
      </item>
      <item>
         <title>Quinn</title>
         <author>quinncheong2019</author>
         <link>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877694187</link>
         <description><![CDATA[<div><br>a)&nbsp;<br>def brute(change):<br>&nbsp; 20c = 0<br>&nbsp; 10c = 0<br>&nbsp; 5c = 0<br>&nbsp; 1c = 0<br>&nbsp; 20c = change // 20<br>&nbsp; change = change % 20<br>&nbsp; ... repeat for the others<br>  return all<br><br><br>b)&nbsp;<br>def greedychange):<br>20c = 0<br>10c = 0<br>5c = 0<br>1c = 0<br><br>while change != 0:<br>&nbsp; if change - 20 &gt; 0:<br>&nbsp; &nbsp; change -= 20 &nbsp;<br>&nbsp; &nbsp; 20c += 1<br>&nbsp; &nbsp; continue<br>&nbsp;if change - 10 &gt; 0:<br>&nbsp; &nbsp; change -= 10 &nbsp;<br>&nbsp; &nbsp; 10c += 1<br>&nbsp; &nbsp; continue<br>&nbsp; if change - 5 &gt;0:<br>&nbsp; &nbsp; change -= 5<br>&nbsp; &nbsp; 5c += 1<br>&nbsp; &nbsp; continue<br>&nbsp; if change - 1 &gt; 0:<br>&nbsp; &nbsp; change -= 5<br>&nbsp; &nbsp; 1c += 1<br>&nbsp; &nbsp; continue<br><br>return 20c,10c,5c,1c<br><br><br>&nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp;<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-11-09 09:07:21 UTC</pubDate>
         <guid>https://padlet.com/qttruong/m9zximydwowumpfo/wish/1877694187</guid>
      </item>
   </channel>
</rss>
