Skip to content

seansteppie/PostfixCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PostfixCalculator

An implememtation of a Reverse Polish Notation/Postfix calculator (see: Wikipedia) written for a programming challenge.

Can either be called with a string expression or as an array of operands/operators:

PostfixCalculator.evaluate( "25 45 +" );

PostfixCalculator.evaluate( new String[] { "2", "3", "9", "4", "/", "+", "*" } );

About

Calculate a total from an expression in Reverse Polish Notation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages