- 博客(17)
- 资源 (7)
- 收藏
- 关注
原创 LeetCode总结,递归的理解与设计
一,简介递归的原理递归算法:是一种直接或者间接地调用自身的算法。在计算机编写程序中,递归算法对解决一大类问题是十分有效的,它往往使算法的描述简洁而且易于理解。1,参考于书籍中的讲解:递归算法的实质:是把问题转化为规模缩小了的同类问题的子问题。然后递归调用函数(或过程)来表示问题的解。递归的原理基于子问题,子问题只是一个小的规模的父问题,因为本文是假设子问题能够求解的,而父问
2016-02-29 10:16:13 3842
原创 <LeetCode OJ> 96. Unique Binary Search Trees
96. Unique Binary Search TreesMy SubmissionsQuestionTotal Accepted: 75913 Total Submissions: 205774 Difficulty: MediumGiven n, how many structurally unique BST's (binary search
2016-02-26 21:07:29 1423
原创 <LeetCode OJ> 278. First Bad Version
278. First Bad VersionMy SubmissionsQuestionTotal Accepted: 33285 Total Submissions: 152183 Difficulty: EasyYou are a product manager and currently leading a team to develop a
2016-02-25 10:40:06 1479
原创 <LeetCode OJ> 35. Search Insert Position
35. Search Insert PositionMy SubmissionsQuestionTotal Accepted: 94638 Total Submissions: 256951 Difficulty: MediumGiven a sorted array and a target value, return the index if t
2016-02-24 23:17:29 1966
原创 <LeetCode OJ> 49. Group Anagrams
49. Group AnagramsMy SubmissionsQuestionTotal Accepted: 66408 Total Submissions: 249691 Difficulty: MediumGiven an array of strings, group anagrams together.For example, give
2016-02-23 23:02:14 1413
原创 <LeetCode OJ> 103. Binary Tree Zigzag Level Order Traversal
103. Binary Tree Zigzag Level Order TraversalMy SubmissionsQuestionTotal Accepted: 54617 Total Submissions: 194980 Difficulty: MediumGiven a binary tree, return the zigzag leve
2016-02-23 14:46:22 1222
原创 <LeetCode OJ> 102. / 107. Binary Tree Level Order Traversal(I / II)
102. Binary Tree Level Order TraversalMy SubmissionsQuestionTotal Accepted: 90536 Total Submissions: 284466 Difficulty: EasyGiven a binary tree, return the level order traversa
2016-02-22 22:27:45 1689
原创 <LeetCode OJ> 235. / 236. LCA of a BSTree & BTree
235. Lowest Common Ancestor of a Binary Search TreeMy SubmissionsQuestionTotal Accepted: 54510 Total Submissions: 143305 Difficulty: EasyGiven a binary search tree (BST), find
2016-02-21 15:34:16 1622
原创 <LeetCode OJ> 5. Longest Palindromic Substring
5. Longest Palindromic SubstringMy SubmissionsQuestionTotal Accepted: 93832 Total Submissions: 418691 Difficulty: MediumGiven a string S, find the longest palindromic substring
2016-02-19 16:25:21 3263 1
原创 <LeetCode OJ> 74. / 240. Search a 2D Matrix (I / II)
240. Search a 2D Matrix IIMy SubmissionsQuestionTotal Accepted: 28527 Total Submissions: 85566 Difficulty: MediumWrite an efficient algorithm that searches for a value in an m
2016-02-18 20:57:43 1278
原创 <LeetCode OJ> 118 / 119 Pascal's Triangle(I / II)
118. Pascal's TriangleMy SubmissionsQuestionTotal Accepted: 73965 Total Submissions: 227957 Difficulty: EasyGiven numRows, generate the first numRows of Pascal's triangle.For
2016-02-18 19:01:45 1451 2
原创 <LeetCode OJ> 120. Triangle
120. TriangleMy SubmissionsQuestionTotal Accepted: 62741 Total Submissions: 213503 Difficulty: MediumGiven a triangle, find the minimum path sum from top to bottom. Each step y
2016-02-18 16:48:24 2050
原创 本博客LeetCode题解索引及各类算法问题小结汇总(C++实现)
Some explains:1),The current problems have been solved:Welcome, EbowTang! You have solved 101 / 316 problems.(update::2016/02/15)2),All problems are coded with C++3),There are 333 problems (about 54 problems for a fee).4),I will update this article fo
2016-02-15 17:18:57 9143
原创 <LeetCode OJ> 290. Word Pattern
290. Word PatternMy SubmissionsQuestionTotal Accepted: 24989 Total Submissions: 89440 Difficulty: EasyGiven a pattern and a string str, find if str follows the same pattern.
2016-02-11 18:09:54 1502
原创 <LeetCode OJ> 228. Summary Ranges
228. Summary RangesMy SubmissionsQuestionTotal Accepted: 36554 Total Submissions: 159532 Difficulty: EasyGiven a sorted integer array without duplicates, return the summary of
2016-02-10 16:11:10 1190
原创 <LeetCode OJ> 14. Longest Common Prefix
14. Longest Common PrefixMy SubmissionsQuestionTotal Accepted: 85063 Total Submissions: 312335 Difficulty: EasyWrite a function to find the longest common prefix string amongst
2016-02-07 17:45:21 1046
原创 <LeetCode OJ> 64. Minimum Path Sum
64. Minimum Path SumMy SubmissionsQuestionTotal Accepted: 62294 Total Submissions: 183284 Difficulty: MediumGiven a m x n grid filled with non-negative numbers, find a path fro
2016-02-06 13:42:09 2918
使用NSIS制作的多功能工具,有利于定位问题,辅助解决问题
2022-03-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人