Given an array of integers and an integer k,
find out whether there there are two distinct indices i and j in
the array such that nums[i] = nums[j] and
the difference between iand j is
at most...
分类:
其他好文 时间:
2015-06-25 09:00:59
阅读次数:
82
面试笔试精华(二)警告:一定要把英文题目过一遍,有些公司的题目故意弄成英文的!!!1. Difference between shallow copy and deep copy?浅复制和深复制的区别?1> 浅拷贝:指针(地址)拷贝,不会产生新对象2> 深拷贝:内容拷贝,会产生新对象2. What ...
分类:
移动开发 时间:
2015-06-24 22:29:58
阅读次数:
227
mySQL运算符这些运算符在SQL查询中用得到。算数运算符+ 加- 减* 乘/ DIV 除% MOD 取余数比较运算符= 等于 != 不等于>=Between 指定范围In 存在于集合Is null 为NULLIs not null 不为空Like 通配符Regexp rlike 正则表达式比如比较...
分类:
数据库 时间:
2015-06-24 12:26:06
阅读次数:
167
From android 4.4 , it supply one new animation with layout:transitionTo help you animate a change between one view hierarchy and another, Android prov...
分类:
其他好文 时间:
2015-06-24 12:16:36
阅读次数:
140
bug的严重性(Severity)和优先级(Priority)
分类:
其他好文 时间:
2015-06-24 10:43:39
阅读次数:
83
key points:1 conversion between different types2 overflow 会有比较多corner cases需要考虑3 iterationrelated questions:Median of Two Sorted ArraysReverse Integer...
分类:
其他好文 时间:
2015-06-23 06:15:12
阅读次数:
150
题目链接:http://acm.swust.edu.cn/problem/801/Time limit(ms): 1000 Memory limit(kb): 10000DescriptionConsider the set of all reduced fractions between...
分类:
其他好文 时间:
2015-06-22 14:53:17
阅读次数:
94
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary ...
分类:
其他好文 时间:
2015-06-22 11:11:22
阅读次数:
99
Ifyou’refamiliarwithobject-orientedprogramming,you’relikelyaccustomedtothinkingoffunctions,methods,andclassconstructorsasthreeseparatethings.InJavaScr...
分类:
其他好文 时间:
2015-06-22 01:09:40
阅读次数:
170
http://www.groovy-lang.org/json.htmlGroovy comes with integrated support for converting between Groovy objects and JSON. The classes dedicated to JSON...
分类:
Web程序 时间:
2015-06-21 20:56:44
阅读次数:
149