November Coding challenge

The neighborhood is upgraded again ! The robber nowadays is struggling to survive. Different from a Linear structure neighborhood as House Robber I, and Circular structure neighborhood as House Robber II. Now, the neighborhood is a tree structure.

As a robber, your goal is to rob as…

November Challenge

Problem

Given the root node of a binary search tree, return the sum of values of all nodes with a value in the range [low, high].

It simply calculate the sum for those between the given high and low value.

Solution I

This is a binary search tree, which means that…

codeVader

May the Code be with you, always

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store