Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1009 Bytes

Leo-20180930.md

File metadata and controls

40 lines (29 loc) · 1009 Bytes

Leo Lei | 雷雨

Sep 30, 2018

1. Leetcode

Word Break II

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences.

Note:

The same word in the dictionary may be reused multiple times in the segmentation.
You may assume the dictionary does not contain duplicate words.
Example 1:

Input:
s = "catsanddog"
wordDict = ["cat", "cats", "and", "sand", "dog"]
Output:
[
  "cats and dog",
  "cat sand dog"
]


Analysis

TODO

Implementation

TODO

2. Article and comment

Inside look at modern web browser (part 3)

3. New skill/tool

None

4. Share an article

Architecture of Nautilus, the new Dropbox search engine