Skip to content

Evaluate Reverse Polish Notation#86

Open
Yuto729 wants to merge 1 commit into
mainfrom
evaluate-reverse-polish-notation
Open

Evaluate Reverse Polish Notation#86
Yuto729 wants to merge 1 commit into
mainfrom
evaluate-reverse-polish-notation

Conversation

@Yuto729

@Yuto729 Yuto729 commented Jul 5, 2026

Copy link
Copy Markdown
Owner

解く問題

Evaluate Reverse Polish Notation

次に解く問題

Repository owner deleted a comment from github-actions Bot Jul 5, 2026
オペレーターに遭遇するまで、オペランドをスタックに積む。オペレーターに遭遇したら、スタックから2つ値をpopして左のオペランドと右のオペランドとする。演算結果はスタックに書き戻す。

Time: O(N)
割り算の時に、Python組み込みの`//`を使うとうまくいかない -> なぜか?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pythonの//は0方向じゃなくて負の無限方向に丸めますね。自分も同じところで躓きました

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

忘れがちなところですね

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants