随笔分类 -  算法

摘要:##add two number 题目要求:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their ... 阅读全文
posted @ 2015-02-09 13:45 GClimited 阅读(129) 评论(0) 推荐(0)
摘要:## Leet code3####Longest Substring Without Repeating Characters The function twoSum should return indices of the two numbers such that they add up to... 阅读全文
posted @ 2015-01-25 10:25 GClimited 阅读(184) 评论(0) 推荐(0)
摘要:二分法查找是一种高效的查找方法 阅读全文
posted @ 2015-01-19 21:03 GClimited 阅读(462) 评论(0) 推荐(0)
摘要:##Two sum (leetcode)refer:https://oj.leetcode.com/problems/two-sum/##Two SumGiven an array of integers, find two numbers such that they add up to a sp... 阅读全文
posted @ 2015-01-17 14:04 GClimited 阅读(325) 评论(0) 推荐(0)
摘要:#![](http://images.cnitblog.com/blog/714585/201501/162135039791999.jpg)#计算小球轨迹:题目:有一个小球,从100米的高度落地,每次弹起来是原来下落高度的一半,求落地十次小球走的轨迹距离。##采用递归的思想,除了第一次小球落地需要... 阅读全文
posted @ 2015-01-16 21:58 GClimited 阅读(1593) 评论(0) 推荐(0)