Is it good to demand result be ordered as an input while input is just a Dict?
When I fix my code to meet assert tests, I've pass it but got an error on checks:
Fail:undefined({
"silver coin":{
"price":10,"amount":1000,"weight":20},
"ruby":{
"price":1000,"amount":2,"weight":200},
"golden coin":{
"price":100,"amount":200,"weight":50}},
5)
Your result:["ruby: 2","golden coin: 92"]
Right result:["golden coin: 92","ruby: 2"]
Whose result is right finally?
I suppose bag shouldn't be ordered (my bag IRL is semi-ordered at least)
Created at: 2019/04/08 11:05; Updated at: 2019/04/08 13:16