150. Evaluate Reverse Polish Notation

This commit is contained in:
Пытков Роман
2024-01-31 00:49:39 +03:00
parent 1e43adf29e
commit 9d50f345d1
5 changed files with 84 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
// See https://aka.ms/new-console-template for more information
using _150._Evaluate_Reverse_Polish_Notation;
string[] arr = ["10", "1", "1", "2", "+", "+", "+"];
var sol = new Solution();
int n = 100000;
while(n-- > 0)
Console.WriteLine(sol.EvalRPN(["10", "1", "1", "2", "+", "+", "+"]));