1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00
programming-challenges/challenges/reverse-polish-notation/input-output.json

35 lines
402 B
JSON

[
{
"input": [""],
"output": 0
},
{
"input": ["3"],
"output": 3
},
{
"input": ["3.5"],
"output": 3.5
},
{
"input": ["1 3 +"],
"output": 4
},
{
"input": ["1 3 *"],
"output": 3
},
{
"input": ["1 3 -"],
"output": -2
},
{
"input": ["4 2 /"],
"output": 2
},
{
"input": ["5 3 + 12 8 + * 10 /"],
"output": 16
}
]