![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
文章平均质量分 85
Mavs
CSE
展开
-
LeetCode 之堆栈 stack
1. Valid ParentheseGiven a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()"原创 2014-03-07 07:23:24 · 2477 阅读 · 0 评论 -
[LeetCode] Length of last word
Length of last wordGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, ret原创 2014-05-10 00:42:05 · 655 阅读 · 0 评论 -
LeetCode 之 string字符串一
1. Length of last wordGiven a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist,原创 2014-03-04 04:38:42 · 9851 阅读 · 0 评论 -
[LeetCode12]Integer to Roman
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Anal原创 2014-06-10 23:00:22 · 732 阅读 · 0 评论 -
[LeetCode21]Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.原创 2014-05-27 00:52:30 · 604 阅读 · 0 评论 -
[LeetCode31]Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible原创 2014-06-13 03:27:25 · 869 阅读 · 0 评论 -
[LeetCode5]Longest Palindromic Substring
Longest Palindromic SubstringGiven 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原创 2014-05-11 07:10:12 · 739 阅读 · 0 评论 -
[LeetCode39]Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C unlimited numb原创 2014-06-17 04:15:23 · 6880 阅读 · 1 评论