1:#status .odd 是否奇数行2:#status.count 当前行数3:#status.index 当前行的序号,从0开始『#status.count=#status.index+1』4:#status.first 是否第一行5:#s...
分类:
其他好文 时间:
2014-06-18 23:39:39
阅读次数:
266
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, ornullif needle is not part of haystack.思路:这是一道字符串匹配的函数,就是找出needle...
分类:
其他好文 时间:
2014-06-18 22:16:17
阅读次数:
236
------------------------互联网英语-----------------------chapter 9 Internet EnglishOr language reverts to typeIn 1972 the first email was sent.Soon the Int...
分类:
其他好文 时间:
2014-06-18 20:50:07
阅读次数:
155
代码优先相对受欢迎,以为铁杆程序员不喜欢使用edmx xml来定义映射关系,那样太复杂。完全的代码控制(自动生成的代码较难修改)一般不会被数据库影响到,数据库只是存储,没有逻辑关系,EF框架会处理和创建逻辑,你不必关心如何实现。手动修改数据库可能会造成数据丢失,因为你代码定义了数据结构。数据库优先较...
分类:
数据库 时间:
2014-06-18 19:53:10
阅读次数:
782
定义IntPair 以及IntPair(first,second)的compareto,先比較first的大小,再比較second的大小定义FirstPartitioner是为了让partition的时候依照IntPair的first来做为选择reduce的根据定义FirstGroupingComp...
分类:
其他好文 时间:
2014-06-18 18:57:15
阅读次数:
289
题目
Implement strStr().
Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.
方法
只需要遍历一遍即可。
public String strStr(String...
分类:
其他好文 时间:
2014-06-16 19:07:08
阅读次数:
188
使用Latex可以排版出漂亮的论文,尤其适合对含有数学公式论文的排版。
下面编写第一Latex源文件,实现对两个数学公式的排版:
新建文件first.tex:
\documentclass{article}
\begin{document}
\begin{equation}
\sqrt{x^2+y^2}
\end{equation}
\begin{equation}
\int_{a}^{...
分类:
其他好文 时间:
2014-06-15 15:13:13
阅读次数:
219
http://docs.codehaus.org/display/GROOVY/Install+Groovy-Eclipse+Pluginhttp://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+ProjectTUTORIAL ...
分类:
系统相关 时间:
2014-06-15 14:28:26
阅读次数:
462
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 sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2014-06-15 14:12:44
阅读次数:
238
first move advantage_百度搜索先动优势
分类:
其他好文 时间:
2014-06-15 12:56:40
阅读次数:
183