Skip to content

nonowak/CalculationTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

CalculationTree

Scala University Solution of CalculationTree

Example Input:

val calculus = Node('/',
		Node('+',
			Node('*', Leaf(6), Leaf(2)),
			Leaf(3),
			Leaf(4)),
		Node('-', Leaf(5))
		)

Output of eval function: -3.8

Output of calcToString function: (((6*2)+3+4)/(-5))

About

Scala University Solution of CalculationTree

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages