Working a evaluator for Polish Notation and I was adding a way to distinguish if the string I got was a number or not using the isNaN function. This w ...
Working a evaluator for Polish Notation and I was adding a way to distinguish if the string I got was a number or not using the isNaN function. This w ...
I'm trying to do the polish notation challenge on kattis.com. Thing is, I feel I have done everything they asked for and I've tried fixing everything ...
I've written polish notation algorithm. But it doesn`t work properly, if there are the same operands between operator. If we run this code with curren ...
BASIC PROBLEM TO SOLVE I am trying to configure flexible rules using user groups and ir.rules in Odoo 10. Basically I want to give users access only ...
I am little bit confused about this expression here I am confused, what should I do? please need help. Here now what should i do? should /^ ...
I am really struck with a question . convert the below expression using javaScript [ "AND", ["<", "var1", "var2"], [ "OR", [">", "var3", "v ...
When I input a string operator whether it be addition(+), subtraction(-), multiplication(*), division(/) or module(%), it still enters the while loop ...
I have this function: It is intended to convert to json-logic conditions a strings like this one: json_logic condition is looks like this: Ho ...
I have interpreter that solve Polish notation. I have all operations and numbers in tokens and I have a list of tokens. So for example - - 5 4 2 is a ...
I have a task: make a program (C++), which converts "infix" notation to "prefix" and uses own "stack and queue" realizations. But I get: "Critical e ...
If I wanted to convert this from infix to postfix: Would this be correct?: Also, if I wanted to evaluate this: Would it simplify to this?: ...
Prefix Notation conversion into a tree is usually done like this: Create a binary tree from an algebraic expression However, I need to support so ca ...
What are advantages of post-fix expressions over prefix expressions? What can be the disadvantages of prefix expressions that can be removed using pos ...
I was recently looking through a configuration file for a game I was playing, when it struck me how much the language used in the configuration file r ...
By use I mean its use in many calculators like HP35- My guesses (and confusions) are - postfix is actually more memory efficient -( SO post com ...
i'm searching for something that explains how i can calculate an Polish Expression, example: if i have this ((1+2)*4)+3, in normal way is 1+2*4+3 = 1 ...
I have an expression like below. MIN(MAX(AVG(AVG(4,2),2,3),SUM(1,2))) I have implemented shunting yard algorithm to convert infix to reversed polish n ...
I'm trying to write a version of always popular Count-A-WFF section of the WFF 'N Proof game (no copyright infringement intended) in Python. Alright, ...
I've been trying to solve this question on SPOJ: http://www.spoj.com/problems/ONP/. I've tried to implement a two Stack solution for the problem stat ...