Suppose I am trying to develop an algorithm to solve a problem.
How should I proceed?
How can I understand which data structure is suitable for solving my problem?
When trying to develop an algorithm for evaluating an infix expression, I thought it would be wise to use two stacks to solve the problem. But later I discovered that a tree is necessary for this work.
How did the developer know that the tree would be suitable?
source
share