摘要: Problem Description:This is afollow upofShortest Word Distance. The only difference is now you are given the list of words and your method will be cal... 阅读全文
posted @ 2015-08-05 17:17 jianchao-li 阅读(3650) 评论(0) 推荐(0)
摘要: Problem Description:Given a list of words and two wordsword1andword2, return the shortest distance between these two words in the list.For example,Ass... 阅读全文
posted @ 2015-08-05 16:02 jianchao-li 阅读(3777) 评论(0) 推荐(0)
摘要: Problem Description: Implement an iterator to flatten a 2d vector.For example,Given 2d vector =[ [1,2], [3], [4,5,6]]By callingnextrepeatedly unti... 阅读全文
posted @ 2015-08-05 15:16 jianchao-li 阅读(2989) 评论(0) 推荐(0)