## trapping rain water explanation

Problem Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water…

## Height balanced binary tree

A binary tree is height balanced if for each node in the tree, the difference between the height…

## Find longest path in binary tree

Problem Write a function that takes in a binary tree and returns its diameter. The diameter of a…

## binary search tree construction

In this tutorial, i am going to show you examples of how to construct a binary search tree…

## Find closest value in BST iterative

Problem Write a function that takes in a binary search tree (BST) and a target integer value and…

## merge overlapping subintervals

Problem Write a function that takes in a non-empty array of arbitrary intervals, merges any overlapping intervals, and…

## Product of array except self explanation – code in c++

The problem is as described in the image above. You are expected to multiply all elements of the…

## algoexpert tournament winner solution

Solution in c++ This problem is easy to solve get a map of each competitors score Get the…

## lazy bartender problem solution

Daily Coding Problem: Problem #297 [Medium] This problem was asked by Amazon. At a popular bar, each customer…

## daily coding problem | Interview Questions Solutions.

Daily Coding Problem: Problem #299 [Medium] This problem was asked by Samsung.A group of houses is connected to…