Given a binary tree, return the level order t […]
Given a binary tree, find its maximum depth. The maximu […]
Given two binary trees and imagine that when you put on […]
Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ […]
1.问题描述 二叉树中任意两个节点的距离指的从一个节点到达另一个节点所需要的最小边数。 2.问题求解 假设ro […]
Count the number of prime numbers less than a non-negat […]
Given an integer n, return the number of trailing […]
Say you have an array prices for which the&n […]
Say you have an array for which the ith eleme […]
Given n points on a 2D plane, find the maximu […]
Given an integer matrix, find the length of the longest […]
Implement a trie with insert, search, and startsWith me […]
Given a binary tree, check whether it is a mirror of it […]
题目描述:给定两个字符串A、B,求出两个字符串的最长公共子串和最长公共子序列。 解析:这两个题目很容易混淆,解 […]
You are given coins of different denominations and a to […]