Solution in ruby way is imperfect with Question:: Evaluate Reverse Polish Notation ----caused by devision


  • 1
    A

    Due to division with negative number have different implements in different platform, the use case "
    ["10","6","9","3","+","-11","","/","","17","+","5","+"]" for mentioned question can NOT work well in ruby.

    In ruby, division with negative number will generate integer result close to negative infinite, which is opposite to C and others.

    Is my fault, or the use case should be modified? thx


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.