How to Sum within A Range in a Binary Search Tree? February 15, 2019 algorithms, c / c++, DFS, recursive No Comments Given the root node of a binary search tree, return the sum of values of all nodes with value between L and R (inclusive). The binary search tree is … [Continue Reading...]
How to Remove all elements of val From a Linked List? June 12, 2016 c / c++, data structure 1 Comment You are asked to remove all elements of value val from a integer linked list. For example, Remove 2 from the following list, 1 -> 2 -> 2 -> … [Continue Reading...]