
MyLeetCode_Go
文章平均质量分 78
稚枭天卓
manu
展开
-
LeetCode 之 Search for a Range(查找)
LeetCode 之 Search for a Range,本文给出基于二分查找的算法思想与C++ STL源码实现。原创 2015-07-28 15:26:00 · 1265 阅读 · 0 评论 -
C++ 字典排序 原理与实现
本文拟首先给出字典序的定义,字典序的物理含义;然后,介绍字典序的代码实现思想;最终,给出字典序的代码实现。原创 2015-07-03 12:03:29 · 15673 阅读 · 1 评论 -
LeetCode 之 Jump Game(贪心算法)
LeetCode 之 Jump Game,本文给出基于动态规划思想、贪心算法的三种实现思路分析,最后,贴上三套C++详细源码实现。原创 2015-08-05 11:05:27 · 1426 阅读 · 0 评论 -
LeetCode 之 Pow(x, n)(分治法)
LeetCode 之 Pow(x, n),本文给出基于分治算法思想分析与二分实现表达式,最后,贴上C++详细源码实现。原创 2015-08-04 09:05:26 · 1351 阅读 · 0 评论 -
LeetCode 之 Palindrome Partitioning II(动态规划)
LeetCode 之 Palindrome Partitioning II,本文给出基于动态规划算法思想与状态转换表达式,最后,贴上C++详细源码实现。.原创 2015-08-03 10:58:41 · 920 阅读 · 0 评论 -
LeetCode 之 Subsets(图和暴力枚举)
LeetCode 之 Subsets,本文给出基于图的深度优先检索的算法思想与C++ STL源码实现。原创 2015-07-29 11:15:59 · 1327 阅读 · 1 评论 -
LeetCode 之 Valid Palindrome(字符串)
LeetCode 之 Valid Palindrome,本文给出详细算法思想与源码实现。原创 2015-07-22 09:36:02 · 977 阅读 · 1 评论 -
LeetCode 之 Longest Valid Parentheses(栈)
LeetCode 之 Valid Palindrome,本文给出详细算法思想与源码实现。原创 2015-07-23 10:07:08 · 1044 阅读 · 3 评论 -
LeetCode 之 Binary Tree Preorder Traversal(树)
【算法核心思想】1)初始化Vector,树空直接返回,不为空进入压栈弹栈机制;2)(按从根出发先遍历左子树再遍历右子树的遍历思想),依次循环从根出发,先右子树先入栈左子树后入栈(子树弹栈是和压栈顺序反过来的);3)栈空停止迭代。原创 2015-07-24 11:05:18 · 779 阅读 · 1 评论 -
LeetCode 之 4Sum 的四种实现
2.1.10 4Sum描述Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target?Find all unique quadruplets in the array which gives the sum of target.Note原创 2015-08-24 13:15:33 · 2022 阅读 · 0 评论 -
LeetCode 之 Merge Sorted Array(排序)
LeetCode 之 Merge Sorted Array,本文给出详细算法思想与源码实现。原创 2015-07-27 09:50:37 · 1023 阅读 · 0 评论 -
LeetCode 之 Course Schedule I(图-广搜)
LeetCode 之 Course Schedule I,给出图结构的构造函数,分析拓扑排序原理,并最终给出LeetCode 之 Course Schedule I的源码AC实现原创 2015-05-13 09:35:41 · 841 阅读 · 0 评论