mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2024-12-08 00:45:29 +01:00
51 lines
1.5 KiB
JSON
51 lines
1.5 KiB
JSON
[
|
|
{
|
|
"input": [
|
|
[
|
|
{ "quantity": 21, "item": "Bowling Ball" },
|
|
{ "quantity": 2, "item": "Dirty Sock" },
|
|
{ "quantity": 1, "item": "Hair Pin" },
|
|
{ "quantity": 5, "item": "Microphone" }
|
|
],
|
|
[
|
|
{ "quantity": 2, "item": "Hair Pin" },
|
|
{ "quantity": 3, "item": "Half-Eaten Apple" },
|
|
{ "quantity": 67, "item": "Bowling Ball" },
|
|
{ "quantity": 7, "item": "Toothpaste" }
|
|
]
|
|
],
|
|
"output": [
|
|
{ "quantity": 88, "item": "Bowling Ball" },
|
|
{ "quantity": 2, "item": "Dirty Sock" },
|
|
{ "quantity": 3, "item": "Hair Pin" },
|
|
{ "quantity": 3, "item": "Half-Eaten Apple" },
|
|
{ "quantity": 5, "item": "Microphone" },
|
|
{ "quantity": 7, "item": "Toothpaste" }
|
|
]
|
|
},
|
|
{
|
|
"input": [
|
|
[
|
|
{ "quantity": 0, "item": "Bowling Ball" },
|
|
{ "quantity": 0, "item": "Dirty Sock" },
|
|
{ "quantity": 0, "item": "Hair Pin" },
|
|
{ "quantity": 0, "item": "Microphone" }
|
|
],
|
|
[
|
|
{ "quantity": 1, "item": "Hair Pin" },
|
|
{ "quantity": 1, "item": "Half-Eaten Apple" },
|
|
{ "quantity": 1, "item": "Bowling Ball" },
|
|
{ "quantity": 1, "item": "Toothpaste" }
|
|
]
|
|
],
|
|
"output": [
|
|
{ "quantity": 1, "item": "Bowling Ball" },
|
|
{ "quantity": 0, "item": "Dirty Sock" },
|
|
{ "quantity": 1, "item": "Hair Pin" },
|
|
{ "quantity": 1, "item": "Half-Eaten Apple" },
|
|
{ "quantity": 0, "item": "Microphone" },
|
|
{ "quantity": 1, "item": "Toothpaste" }
|
|
]
|
|
}
|
|
]
|