
算法与数据结构
文章平均质量分 92
hhli
如果你对技术有追求 就不要满足于消费别人的总结 一定要到源头去看看。
展开
-
ArrayList源码解读
本文探讨了ArrayList的源码实现,讲述了ArrayList的类关系、创建、增删改查、序列化、线程安全原创 2019-07-13 11:58:36 · 328 阅读 · 0 评论 -
递归详解
转自:http://www.cnblogs.com/zhangqqqf/archive/2008/09/12/1289730.html C通过运行时堆栈支持递归函数的实现。递归函数就是直接或间接调用自身的函数。 许多教科书都把计算机阶乘和菲波那契数列用来说明递归,非常不幸我们可爱的著名的老潭老师的《C语言程序设计》一书中就是从阶乘的计算开始的函数递归。导致读过这本经书的同学们,看到阶转载 2012-12-27 14:45:42 · 622 阅读 · 0 评论 -
再次详解递归
转自:http://blog.chinaunix.net/uid-26941022-id-3331402.html 计算机科学的新学生通常难以理解递归程序设计的概念。递归思想之所以困难,原因在于它非常像是循环推理(circular reasoning)。它也不是一个直观的过程;当我们指挥别人做事的时候,我们极少会递归地指挥他们。 对刚开始接触计算机编程的人而言,这里有递归的一个简单定义:当转载 2013-01-05 10:43:21 · 922 阅读 · 0 评论 -
leetcode Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo原创 2015-06-16 21:15:56 · 582 阅读 · 0 评论 -
leetcode Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a li原创 2015-06-07 11:30:10 · 755 阅读 · 0 评论 -
leetcode algorithms: two sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe原创 2015-05-24 11:47:32 · 571 阅读 · 0 评论