I've been diving into Data Structures and Algorithms for a few weeks now, focusing on stacks and queues. I've come across the topic of prefix, infix, and postfix notations. I'm curious if I should spend time learning about these notations or if it's okay to skip them. What are their practical uses, and do they really matter for beginners?
4 Answers
Honestly, I’d say don’t skip any topic! It’s all part of building a strong foundation. There are no shortcuts to becoming proficient. Dive in and learn everything you can—it's worth the effort!
It's definitely useful to familiarize yourself with Reverse Polish Notation (RPN) at the very least. Understanding it can help when you're debugging or evaluating expressions. Even if you don't use it directly, having that knowledge can be really helpful down the line.
I mean, why would you want to skip it? If you're hesitant, it might be because you're finding it challenging. Just remember that the initial confusion can be part of the learning process!
If you're concentrating on Data Structures and Algorithms (DSA), then learning about prefix, infix, and postfix isn't essential right now. These concepts are more relevant in parsing theory and are typically explored in compiler design. However, if you eventually delve into compiler theory, it might be beneficial to check them out then.
Exactly, it’s all about how the program can utilize the same data structure for different outputs based on traversal methods.

Totally agree! But don’t overlook pre-, post-, and in-order traversals of a binary tree. They’re great for practicing recursion and offer solid insights into how tree structures work.