1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-07-18 02:20:12 +02: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
}
]