摘要: 题目: 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 repeatedl 阅读全文
posted @ 2015-11-30 11:51 YRB 阅读(941) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. For example,Assume that wor 阅读全文
posted @ 2015-11-30 10:16 YRB 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", 阅读全文
posted @ 2015-11-30 07:37 YRB 阅读(1562) 评论(2) 推荐(0) 编辑
摘要: 题目: Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators 阅读全文
posted @ 2015-11-30 07:14 YRB 阅读(2303) 评论(0) 推荐(0) 编辑