英文原文:7 Useful Git Tips for Beginners当我刚刚开始使用 Git 的版本控制时,我根本不确定我付出那么多时间是不是会得到回报。Branch、Stage、Stash,这些 Git 名词对我来说都非常陌生。而今天的我已不能想象生活没有 Git 会变成什么样。Git 不仅提...
分类:
其他好文 时间:
2014-12-04 11:41:02
阅读次数:
259
参考资料:http://blog.csdn.net/lincyang/article/category/697217不要慌张,如果clean和重启都没有作用,此时要查看problems视图,快捷键为Alt+Shift+Q,X。把这里的问题描述拿去搜索,一般就会找到答案。
分类:
移动开发 时间:
2014-12-04 10:09:48
阅读次数:
146
http://www.spoj.com/problems/NSUBSTR/题意:给一个字符串S,令F(x)表示S的所有长度为x的子串中,出现次数的最大值。求F(1)..F(Length(S))这题做法:首先建立字符串的后缀自动机。因为自动机中的每个状态都代表一类子串前缀,且任意状态的最长的|max|...
分类:
其他好文 时间:
2014-12-04 07:41:30
阅读次数:
254
这是LeetCode上的一道题目,需要求二叉树中两点路径的最大和。原题是https://oj.leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.The p...
分类:
其他好文 时间:
2014-12-03 23:05:58
阅读次数:
226
题目链接:https://oj.leetcode.com/problems/intersection-of-two-linked-lists/
分析:题目就是求两个链表的的第一个交点,如果没有交点,那么返回NULL。所谓两个链表有交点,那么两个链表的形状一定是"Y"的形状,不可能是"X"形状。
算法一:暴力遍历(时间复杂度O(m*n),空间复杂度O(1))
对于链表A中的每一...
分类:
其他好文 时间:
2014-12-03 21:26:17
阅读次数:
185
题目网址:https://oj.leetcode.com/problems/two-sum/题目描述:Given an array of integers, find two numbers such that they add up to a specific target number.The ...
分类:
其他好文 时间:
2014-12-03 14:07:05
阅读次数:
161
同学推荐了LeetCode,相比其他的OJ,题量少,题目也比较经典,针对性特别强,适合练习。LeetCode相关的网上资源比较多,不过,看到题目一定要自己做一遍,然后再去参考其他人的解法。https://oj.leetcode.com/problems/min-stack/Design a stac...
分类:
其他好文 时间:
2014-12-03 09:21:36
阅读次数:
123
题目:
Exponentiation
Time Limit: 500MS
Memory Limit: 10000K
Total Submissions: 139077
Accepted: 33994
Description
Problems involving the computation of exact val...
分类:
其他好文 时间:
2014-12-03 00:27:57
阅读次数:
189
原题链接:https://oj.leetcode.com/problems/intersection-of-two-linked-lists/
题目大意:给定两个单链表,若相交则找出第一个交点。
解题思路:如果两个无环单链表相交,则必定尾部结点为同一个结点。设定两个指针,若从两个链表的表头同时遍历,很明显不能找到交点。但若将较长的链表截去长出来的一部分,然后两个指针同时遍历,则第一次两个指针相...
分类:
其他好文 时间:
2014-12-01 22:36:59
阅读次数:
199
In this Document Purpose Details Scenario 1: Testing the basic item import with minimum columns populated ...
分类:
其他好文 时间:
2014-11-30 19:59:01
阅读次数:
314