Fresh Beginning
  • Home
  • Portfolio
  • My Clothing Shop
  • Etsy Clothing Store
  • Buy Me A Coffee
  • Patreon
  • Speaking
  • Reading
  • About Me
  • Contact Me
Subscribe

Histogram

A collection of 1 post
Interview

Histogram Problem - Calculating the total volume of water held

This is another interview problem I came across recently. This is the classic and routine interview question. To summarize, problem can be described as follows, Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap
Jul 13, 2017 3 min read
Fresh Beginning © 2025
Powered by Ghost