![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
一醉青衫
充电
展开
-
LeetCode | 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 but “原创 2015-10-14 21:29:47 · 149 阅读 · 0 评论 -
LeetCode | Spiral Matrix /Spiral Matrix II
没有多大难度,用递归做,每次递归扫描一遍外层的元素 一相对要麻烦点,要注意矩阵的长宽/****** * Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. * * For example, * Given the following matr原创 2015-10-14 14:36:06 · 142 阅读 · 0 评论 -
LeetCode | Valid Palindrome
Given a string, determine if it is a palindromeconsidering only alphanumeric characters and ignoring cases. For example, “A man, a plan, a canal: Panama” is a palindrome. “race a car” is not a palin原创 2015-10-13 20:28:09 · 129 阅读 · 0 评论 -
LeetCode | Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note: You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold additional原创 2015-10-12 19:16:45 · 152 阅读 · 0 评论