User talk:CalmoSoft: Difference between revisions
Content added Content deleted
Line 271: | Line 271: | ||
: I would say make the list a mixture of integers and floating point numbers, and find minimum, maximum, and average distance (one task not three), and the/all positions of the max/min pairs. When checking to see if anything like this already existed I noticed [[Greatest_element_of_a_list]] as a related task. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 11:32, 18 July 2021 (UTC) |
: I would say make the list a mixture of integers and floating point numbers, and find minimum, maximum, and average distance (one task not three), and the/all positions of the max/min pairs. When checking to see if anything like this already existed I noticed [[Greatest_element_of_a_list]] as a related task. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 11:32, 18 July 2021 (UTC) |
||
Task: Find minimum number of coins that make a given value |
|||
<br> = [1,2,5,10,20,50,100,200] |
|||
<br> = 988 |
|||
<br>Coins are: <br> |
|||
4*200 <br> |
|||
1*100 <br> |
|||
1*50 <br> |
|||
1*20 <br> |
|||
1*10 <br> |
|||
1*5 <br> |
|||
1*2 <br> |
|||
1*1 <br> |