COIN-CHAGING Problem

73 views
Skip to first unread message

蘇家輝

unread,
Dec 29, 2019, 7:25:37 AM12/29/19
to 黃子嘉 - 線代離散研究室
103輔大資工 
pseudo code第六行中的
if( i > dj )
如果coin 的面額有1塊和10塊
要換10塊,會不會出錯呢?
因為10沒有大於10,所以最後的迴圈不會做 if 裡面的事
Reply all
Reply to author
Forward
0 new messages