MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / postfix_evaluation

Function postfix_evaluation

others/postfix_evaluation.cpp:97–117  ·  view source on GitHub ↗

* @brief Postfix Evaluation algorithm to compute the value from given input * array * @param input vector of strings consisting of numbers and operations * @returns stack[stackTop] returns the top value from the stack */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

test_function_1Function · 0.85
test_function_2Function · 0.85
test_function_3Function · 0.85
test_single_inputFunction · 0.85
test_not_enough_operandsFunction · 0.85
test_too_many_operandsFunction · 0.85

Calls 5

remove_from_stackFunction · 0.85
evaluateFunction · 0.85
is_numberFunction · 0.70
pushMethod · 0.45
emptyMethod · 0.45

Tested by 7

test_function_1Function · 0.68
test_function_2Function · 0.68
test_function_3Function · 0.68
test_single_inputFunction · 0.68
test_not_enough_operandsFunction · 0.68
test_too_many_operandsFunction · 0.68