Heavy Transportation
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 26968
Accepted: 7232
Description
Background Hugo Heavy is happy. After the breakdown of the Car...
This is a follow up of Shortest Word Distance. The only difference is now word1 could be the same as word2.
Given a list of words and two words word1 and word2, return the shortest distance between...
This is a follow up of Shortest Word Distance. The only difference is now you are given the list of words and your method will be called repeatedly many times with differen...
题目
给定二叉树,求最短路径包含的节点个数
https://leetcode.com/problems/minimum-depth-of-binary-tree/
Given a binary tree, find its minimum depth.
The minimum depth is the number of nodes along the...