Development Java Javascript

Javascript – Simplification of prefix notation

I am working on a kattis problem, where I am suppose to take the input in prefix notation, simplify it and return it in prefix notation as well. This are the examples of inputs and outputs: Sample Input 1 Sample Output 1 + 3 4 Case 1: 7 – x x Case 2: – x […]