最新 最热

LeetCode 0226 - Invert Binary Tree

This problem was inspired by this original tweet by Max Howell:

2021-08-11
1

LeetCode 0208 - Implement Trie (Prefix Tree)

Implement a trie with insert, search, and startsWith methods.

2021-08-11
1

LeetCode 0257 - Binary Tree Paths

Given a binary tree, return all root-to-leaf paths.

2021-08-11
1

LeetCode 0404 - Sum of Left Leaves

Find the sum of all left leaves in a given binary tree.

2021-08-11
1

LeetCode 0108 - Convert Sorted Array to Binary Search Tree

Given an array where elements are sorted in ascending order, convert it to a height balanced BST.

2021-08-11
1

LeetCode 0109 - Convert Sorted List to Binary Search Tree

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.

2021-08-11
1

LeetCode 0110 - Balanced Binary Tree

Given a binary tree, determine if it is height-balanced.

2021-08-11
1

LeetCode 0112 - Path Sum

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

2021-08-11
1

LeetCode 0113 - Path Sum II

Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.

2021-08-11
1

LeetCode 0114 - Flatten Binary Tree to Linked List

Given a binary tree, flatten it to a linked list in-place.

2021-08-11
1