- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Expression Tree with Example in C++
An expression tree is a special type of binary tree in which each node of the tree either consists of an operator or operand.
Leaf nodes of the tree represent an operand.
Non-leaf nodes of the tree represent an operator.
Example:
To get the infix expression which can be easily solved, we need to traverse the tree using inorder traversal.
Advertisements