摘要: 题目: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] 阅读全文
posted @ 2016-02-02 10:26 gavinXing 阅读(250) 评论(0) 推荐(0)
摘要: 题目: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sort 阅读全文
posted @ 2016-02-01 13:42 gavinXing 阅读(191) 评论(0) 推荐(0)
摘要: how to use git(3) git checkout -b <new_branch_name> 创建分支并切换到分支 git branch -d <branch_name>删除分支 git show <commit> 比较commit和它的parent commit git merge <b 阅读全文
posted @ 2016-01-28 21:22 gavinXing 阅读(118) 评论(0) 推荐(0)
摘要: how to use git (2) 建仓库添加文件以及commit的过程: 1.进入目标目录 2.git init 初始化仓库 3.git add <filename> 将文件加入staging area 4.git commit 提交commit git commit -m "Commit Me 阅读全文
posted @ 2016-01-27 20:13 gavinXing 阅读(122) 评论(0) 推荐(0)
摘要: How to use git: 1.commit 当发生logical change的时候,无论是修改还是添加新代码 2.git log 查看该repo内的commit git log --stat 给出数据统计 xx changed...... 3.git diff commitB commitA 阅读全文
posted @ 2016-01-26 21:36 gavinXing 阅读(94) 评论(0) 推荐(0)
摘要: 今天是2016/1/16,大二第一学期放假的第一天,也是我决定开始努力做技术的第一天。希望自己从今天开始可以努力提高技术,追向在我这个年龄就已经是大神的人们。寒假里给了自己几个任务:1.将上学期的《算法导论》再学一遍,并且用C实现2.看《黑客攻防网络篇》,继续学习html,js,php的知识3.把软... 阅读全文
posted @ 2016-01-16 23:07 gavinXing 阅读(199) 评论(0) 推荐(0)