Skip to content

Instantly share code, notes, and snippets.

View untilhamza's full-sized avatar
🎯
Focusing

Hamza Kyamanywa untilhamza

🎯
Focusing
View GitHub Profile
/*
Evaluation Of postfix Expression in C++
Input Postfix expression must be in a desired format.
Operands must be integers and there should be space in between two operands.
Only '+' , '-' , '*' and '/' operators are expected.
*/
#include<iostream>
#include<stack>
#include<string>
@DmitrySoshnikov
DmitrySoshnikov / shunting-yard-algorithm.js
Last active July 11, 2025 11:30
Shunting yard algorithm
/**
* Shunting yard algorithm
* See: http://en.wikipedia.org/wiki/Shunting_yard_algorithm
*
* Converts infix notation to postfix notation
*
* by Dmitry Soshnikov <[email protected]>
* MIT Style License
*
* (C) 2011, updated on 2020