摘要:
The problem statement has stated that there are bothO(n)andO(nlogn)solutions to this problem. Let's see theO(n)solution first (taken fromthis link), w... 阅读全文
posted @ 2015-06-25 17:33
jianchao-li
阅读(241)
评论(0)
推荐(0)
摘要:
Problem Description:Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.The input string d... 阅读全文
posted @ 2015-06-25 16:56
jianchao-li
阅读(245)
评论(0)
推荐(0)
摘要:
This link has a great discussion about this problem. You may refer to it if you like. In fact, the idea and code in this passage is from the former li... 阅读全文
posted @ 2015-06-25 15:28
jianchao-li
阅读(799)
评论(0)
推荐(0)
摘要:
Well, this problem has a nice BFS structure.Let's see the example in the problem statement.start = "hit"end = "cog"dict = ["hot", "dot", "dog", "lot",... 阅读全文
posted @ 2015-06-25 01:00
jianchao-li
阅读(316)
评论(0)
推荐(0)

浙公网安备 33010602011771号