动态规划
文章平均质量分 61
细雨逐光
这个作者很懒,什么都没留下…
展开
-
139 Word Break [Leetcode]
题目内容: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = “leetcode”, d原创 2015-10-04 15:38:45 · 254 阅读 · 0 评论 -
132 Palindrome Partitioning II [Leetcode]
题目内容: Given a string s, partition s such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of s. For example, given s = “aa原创 2015-10-03 23:56:30 · 306 阅读 · 0 评论 -
140 Word Break II [Leetcode]
题目内容: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences. For example原创 2015-10-06 11:43:25 · 366 阅读 · 0 评论