S
S
Soultaker2014-02-14 21:24:27
Programming
Soultaker, 2014-02-14 21:24:27

How to implement the calculation of expressions, taking into account the arrangement of brackets?

For example, given an expression with the string:
((3 + 10 * (5 + 15)) / 4)
//theoretically, the length of the expression is not limited
. It must be parsed and solved adequately. What would you recommend to read on this topic? Algorithms, articles, maybe some, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Demidov, 2014-02-14
@Soultaker

habrahabr.ru/company/yandex/blog/206234
Exactly on your question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question