Problem: Leetcode 112 – Path Sum Description: Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all…
Month: July 2024
Leetcode 199 – Binary Tree Right Side View
Problem: Leetcode 199 – Binary Tree Right Side View Description: Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes…
Leetcode 17 – Letter Combinations of a Phone Number
Description: Given a string containing digits from 2 to 9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order. A mapping of digit to…