Solution does not pass the test on Extra 2 condition:
{
"silver coin": {"price":10,"amount":100,"weight":10},
"ruby": {"price":1000,"amount":5,"weight":200},
"golden coin": {"price":100,"amount":100,"weight":10}},
1.8) == ["golden coin: 100","ruby: 4"]
4 * 200 = 800
100 * 100 = 1000
my solution:
["golden coin: 80","ruby: 5"]
5 * 200 = 1000
80 * 100 = 800
Which solution is correct?
Created at: 2019/03/23 13:12; Updated at: 2019/03/24 07:03
The question is resolved.