Can a prefix expression be reverse of a postfix notation?

TheCSGuy

TheCSGuy

@thecsguy-9H5ctR Oct 26, 2024
Or vice versa? Sometimes? Or it's just never possible? How?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • rahul69

    rahul69

    @rahul69-97fAOs Feb 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! 😀
  • TheCSGuy

    TheCSGuy

    @thecsguy-9H5ctR Feb 1, 2013

    Yeah. Haven't considered such a simple example while thinking.😛. My apologies. 😀
  • rahul69

    rahul69

    @rahul69-97fAOs Feb 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!👍.