摘要: Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from t 阅读全文
posted @ 2016-08-23 15:54 冰凌花花~ 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Clarification What's the definition of Longes 阅读全文
posted @ 2016-08-23 14:07 冰凌花花~ 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2016-08-23 11:33 冰凌花花~ 阅读(124) 评论(0) 推荐(0) 编辑