Skip to content

Calculates the result of an arithmetic tree with addition and multiplication, including for more than two child nodes

License

Notifications You must be signed in to change notification settings

tompenny23/Arithmetic-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arithmetic-Tree

Calculates the result of an arithmetic tree with addition and multiplication, including for more than two child nodes Takes input as a comma separated predecessor list, and another comma separated list of the node’s value (for leaves) or operator (for non-leaves). e.g.

Input: -1,0,0,0,1,1,1 +,*,7,23,19,0,6

Output: 30

About

Calculates the result of an arithmetic tree with addition and multiplication, including for more than two child nodes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages