aiheshan

有多自律,才能有多自由

导航

2016年8月3日 #

UVa 10055 - Hashmat the Brave Warrior

摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=94&page=show_problem&problem=996 解题思路:求两个数差值的绝对值,注意用long; 阅读全文

posted @ 2016-08-03 16:18 aiheshan 阅读(109) 评论(0) 推荐(0) 编辑

2016年7月22日 #

leetcode 3. Longest Substring Without Repeating Characters

摘要: https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repeati 阅读全文

posted @ 2016-07-22 15:38 aiheshan 阅读(121) 评论(0) 推荐(0) 编辑

leetcode 2. Add Two Numbers

摘要: https://leetcode.com/problems/add-two-numbers/ You are given two linked lists representing two non-negative numbers. The digits are stored in reverse 阅读全文

posted @ 2016-07-22 15:20 aiheshan 阅读(135) 评论(0) 推荐(0) 编辑

leetcode 1 Two Sum

摘要: https://leetcode.com/problems/two-sum/ 第一种思路: 首先将数据排序,然后i从头开始,j从尾开始。如果nums[i]+nums[j] ==target,则找到了所要找的2个数。若小于target,则i++,否则j--; 因为要返回的是找到数在原数组中的序号,所以 阅读全文

posted @ 2016-07-22 15:07 aiheshan 阅读(106) 评论(0) 推荐(0) 编辑

2016年7月22日---开始我的记录

摘要: 其实申请博客园很久了,一直想要记录下自己的学习过程。平常都会在云笔记上记录,可是总是觉得不够原创,又懒的花时间去记录。所以到现在,我还不是那种写很多博客,感觉各种牛的程序猿。 给再多的时间,也总是会没有时间去写,所以不能再拖着,我要好好整理一下自己的学习历程,记录自己生活中有意义的那些日子。 心里有 阅读全文

posted @ 2016-07-22 12:06 aiheshan 阅读(81) 评论(0) 推荐(0) 编辑