
字符串
文章平均质量分 67
旻宇
New Acmer
展开
-
uva10405 - Longest Common Subsequence
URL:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1346原创 2014-07-15 14:56:07 · 436 阅读 · 0 评论 -
leetcode #5 Longest Palindromic Substring
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. class Solution { public原创 2015-05-17 12:15:44 · 389 阅读 · 0 评论 -
leetcode #211 Add and Search Word - Data structure design
Design a data structure that supports the following two operations: void addWord(word) bool search(word) search(word) can search a literal word or a regular expression string containing only le原创 2015-05-17 18:23:09 · 469 阅读 · 0 评论 -
Leetcode #212 Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board. Each word must be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horiz原创 2015-08-01 12:31:27 · 447 阅读 · 0 评论 -
LeetCode #214 Shortest Palindrome
Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can find by performing this transformation. For exam原创 2015-08-07 19:57:41 · 406 阅读 · 0 评论 -
Leetcode #32 Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the longest valid parentheses substring is "()", which原创 2015-08-14 12:50:45 · 394 阅读 · 0 评论