Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Wasservolumen

Playing with Java EE 7

Simple EJB bean that calculates volume of water that fills gaps between bars. REST service accessible by

POST:  <context root>/myproject/water/volume

The application was tested using WildFly 9.0.1.Final

Request sample:

{
  "relief": [2,1,3]
}

Algorithm complexity:

  • Time complexity: best/worst/avg O(n) (makes two traversals in linear time)
  • Space complexity: best/worst/avg O(n) (requires additional array for storing maximum height of a wall from right hand side)

About

Playing with Java EE 7

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages