
一维空间内的距离
文章平均质量分 78
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 243. Shortest Word Distance(单词最短距离)
原题网址:https://leetcode.com/problems/shortest-word-distance/ Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. For example,原创 2016-04-07 03:50:35 · 1824 阅读 · 0 评论 -
LeetCode 245. Shortest Word Distance III(最短单词距离)
原题网址:https://leetcode.com/problems/shortest-word-distance-iii/ 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 wor原创 2016-04-07 05:53:34 · 978 阅读 · 0 评论