摘要:
题目: Given three strings: s1, s2, s3, determine whether s3 is formed by the interleaving of s1 and s2. Given three strings: s1, s2, s3, determine wheth 阅读全文
摘要:
题目: 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 fr 阅读全文
摘要:
题目: Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Given two strings, find the longest commo 阅读全文
摘要:
题目: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You h 阅读全文
摘要:
题目: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Given a sequence of int 阅读全文
摘要:
题目: Count the number of k's between 0 and n. k can be 0 - 9. Count the number of k's between 0 and n. k can be 0 - 9. Count the number of k's between 阅读全文
摘要:
此贴为汇总贴 673. Number of Longest Increasing Subsequence 075. Sort Colors 009. Palindrome Number 008. String to Integer (atoi) 007. Reverse Integer 006. Z 阅读全文
摘要:
题目: Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that: Example Given 阅读全文