
切分
文章平均质量分 82
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 139. Word Break(单词分隔)
原题网址:https://leetcode.com/problems/word-break/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.原创 2016-05-27 00:22:29 · 836 阅读 · 0 评论 -
LeetCode 131. Palindrome Partitioning(回文分区)
原题网址:https://leetcode.com/problems/palindrome-partitioning/Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitionin原创 2016-05-27 00:25:24 · 676 阅读 · 0 评论 -
LeetCode 140. Word Break II(单词切分)
原题网址:https://leetcode.com/problems/word-break-ii/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 al原创 2016-05-27 00:22:25 · 2922 阅读 · 0 评论 -
LeetCode 336. Palindrome Pairs(回文对)
原题网址:https://leetcode.com/problems/palindrome-pairs/Given a list of unique words. Find all pairs of distinct indices (i, j) in the given list, so that the concatenation of the two words, i.e.原创 2016-04-30 05:34:08 · 2730 阅读 · 3 评论 -
LeetCode 132. Palindrome Partitioning II(回文切分)
原题网址:https://leetcode.com/problems/palindrome-partitioning-ii/Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a pa原创 2016-05-27 00:22:56 · 794 阅读 · 0 评论