字符串
文章平均质量分 67
CSLDBLYDX
这个作者很懒,什么都没留下…
展开
-
ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I原创 2015-01-15 14:45:44 · 272 阅读 · 0 评论 -
Word Ladder II
超时: bool operator &f, const pair &s) { return f.second > s.second; } class Solution { public: typedef unordered_map > svsmp; typedef unordered_map > > svvsmp; typedef unordered_map simp; typed原创 2015-01-16 10:39:49 · 341 阅读 · 0 评论 -
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid b原创 2015-02-17 18:52:24 · 270 阅读 · 0 评论 -
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a原创 2015-02-17 19:33:44 · 288 阅读 · 0 评论