CrazyEngineers
  • Can a prefix expression be reverse of a postfix notation?

    TheCSGuy

    Member

    Updated: Oct 26, 2024
    Views: 1.2K
    Or vice versa? Sometimes? Or it's just never possible? How?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • rahul69

    MemberFeb 1, 2013

    TheCSGuy
    Or vice versa? Sometimes? Or it's just never possible? How?
    By "reverse" did u meant simple string reverse or something else? Regarding simple string reverse, it is sometimes possible, if the operand string and operator strings are palindrome, and otherwise it is not possible to convert postfix to prefix by simple string reverse.
    Eg: infix:a+a postfix:aa+ prefix:+aa ...
    Hope it helps! 😀
    Are you sure? This action cannot be undone.
    Cancel
  • TheCSGuy

    MemberFeb 1, 2013

    Yeah. Haven't considered such a simple example while thinking.😛. My apologies. 😀
    Are you sure? This action cannot be undone.
    Cancel
  • rahul69

    MemberFeb 1, 2013

    TheCSGuy
    Yeah. Haven't considered such a simple example while thinking.😛. My apologies. 😀
    No need to apologize friend😀,We are always here to help each other out!👍.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register