- 博客(4)
- 收藏
- 关注
原创 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
原创 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
原创 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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人