Wildcard Matching
Description: Implement wildcard pattern matching.
|
|
Restore IP Addresses
Description: Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given “25525511135”, return [“255.255.11.135”, “255.255.111.35”]. (Order does not matter)
|
|
Scramble String
Description
Longest Palindromic Subsequence
Description: Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000.
Example 1: Input: “bbbab”. Output: 4. One possible longest palindromic subsequence is “bbbb”.
Example 2: Input: “cbbd”. Output: 2. One possible longest palindromic subsequence is “bb”.
Edit Distance
Description: 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 have the following 3 operations permitted on a word:
a) Insert a character
b) Delete a character
c) Replace a character
|
|