r/programmingchallenges • u/mr-rusof • Jul 02 '18
The Watermark Problem
http://ruslanledesma.com/2018/07/01/the-watermark-problem.html
3
Upvotes
r/programmingchallenges • u/mr-rusof • Jul 02 '18
View all comments
Show parent comment
1
u/mr-rusof Jul 03 '18
Your proposed Java solution does not print the amount of water for the empty histogram. For input file "\n", expected output file is "0\n". Try inserting lines 20-50: