上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 98 下一页
摘要: 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 阅读全文
posted @ 2019-02-12 22:48 Veritas_des_Liberty 阅读(263) 评论(0) 推荐(0)
摘要: Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the fo 阅读全文
posted @ 2019-02-12 22:16 Veritas_des_Liberty 阅读(207) 评论(0) 推荐(0)
摘要: Given a string S and a string T, count the number of distinct subsequences of S which equals T. A subsequence of a string is a new string which is for 阅读全文
posted @ 2019-02-11 22:40 Veritas_des_Liberty 阅读(172) 评论(0) 推荐(0)
摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. Example 1: Example 2: Approach #1: DP. [C++] Analysis: status: match[s1L 阅读全文
posted @ 2019-02-11 22:13 Veritas_des_Liberty 阅读(232) 评论(0) 推荐(0)
摘要: Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: Approach #1: DP. [C++] Analysis: status: nums[n] 阅读全文
posted @ 2019-02-11 21:26 Veritas_des_Liberty 阅读(248) 评论(0) 推荐(0)
摘要: Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f 阅读全文
posted @ 2019-02-09 00:29 Veritas_des_Liberty 阅读(202) 评论(0) 推荐(0)
摘要: On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. There is exactly one starting square. 2 represents the ending 阅读全文
posted @ 2019-02-08 23:23 Veritas_des_Liberty 阅读(362) 评论(0) 推荐(0)
摘要: Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri 阅读全文
posted @ 2019-02-08 21:43 Veritas_des_Liberty 阅读(242) 评论(0) 推荐(0)
摘要: We are given N different types of stickers. Each sticker has a lowercase English word on it. You would like to spell out the given target string by cu 阅读全文
posted @ 2019-02-06 23:49 Veritas_des_Liberty 阅读(396) 评论(0) 推荐(0)
摘要: Suppose you have N integers from 1 to N. We define a beautiful arrangement as an array that is constructed by these N numbers successfully if one of t 阅读全文
posted @ 2019-02-06 23:04 Veritas_des_Liberty 阅读(243) 评论(0) 推荐(0)
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 98 下一页