Given an array of non-negative integers representing elevation bars, calculate the total amount of water that can be trapped between these bars.
Explanation: Water can be trapped between the bars
Water trapped between elevation bars
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak