Skip to content

About

Javascript coding challenges using github & circleci. It's a coding challenge with a twist.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Given an array of integers where each element reprensents the height of the tower. The width of each tower is 1. It starts raining. How will you find the amount of water collected among towers?

Example:

  • given array [1,0,2,0,1,0,0,0,5,0,2,0,0,0,10,0,8,0,5] amount of water collected is 46.
	              |            	              |
	              | |          	              |
	              | |          	              |#|
	              | |          	              |#|
	              | |          	              |#|
	        |     | | |  after 	        |#####|#|#|
	        |     | | |  raining        |#####|#|#|
	        |     | | |        	        |#####|#|#|
	  |     | |   | | |        	  |#####|#|###|#|#|
	|_|_|___|_|___|_|_|        	|#|#|###|#|###|#|#|

About

Javascript coding challenges using github & circleci. It's a coding challenge with a twist.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors