112.Path Sum

Given the of a binary tree and an integer , return if the tree has a root-to-leaf path such that adding up all the values along the path equals .

A leaf is a node with no children.

Read more »

100.Same Tree

Given the roots of two binary trees and , write a function to check if they are the same or not.

Two binary trees are considered the same if they are structurally identical, and the nodes have the same value.

Read more »

88.Merge Sorted Array

You are given two integer arrays and , sorted in non-decreasing order, and two integers and , representing the number of elements in and respectively.

Merge and into a single array sorted in non-decreasing order.

Read more »