Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. 用的 ...
分类:
其他好文 时间:
2017-05-14 22:54:29
阅读次数:
321
这次校内练习一共有6道题目,安排了一天时间来做。 虽然都做出来了,但是因为本身题目都不大难,而且自己也做了老长时间,感觉还是差了好多,尤其是编码的准确度方面。还有就是对题意的理解还是有点慢,这个也是个问题。 下面就简单说一下我对于这六道题目的解法,不一定是最好的,如果有更好的欢迎指出。 A题 放苹果 ...
分类:
其他好文 时间:
2017-05-14 12:24:51
阅读次数:
299
(num&1) == 0这里必须打上括号,因为==的优先级高于& return num&1可以不打括号 ...
分类:
其他好文 时间:
2017-05-13 23:24:58
阅读次数:
246
1.NVL函数,用法:nvl(a,b)当第一个参数为空时,则显示第二个参数2.递归查询:connect by:一般用法:start with...connect by ... 例:select * from emp connect by mgr =prior empno start with emp ...
分类:
数据库 时间:
2017-05-13 19:02:31
阅读次数:
236
代码编辑界面默认颜色为白色。对于长期使用电脑编程的人来说,白色很刺激我们的眼睛,所以改变workspace的背景色,可以使眼睛舒服一些。设置方法如下: 1、打开window / Preference,弹出Preference面板 2、展开General标签,选中Editors选项,展开。 3、选中 ...
分类:
系统相关 时间:
2017-05-13 14:18:34
阅读次数:
181
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi ...
分类:
其他好文 时间:
2017-05-12 22:05:10
阅读次数:
181
npm install takes 3 exclusive, optional flags which save or update the package version in your main package.json: -S, --save: Package will appear in y ...
分类:
其他好文 时间:
2017-05-12 20:24:31
阅读次数:
211
Q41. An administrator creates a custom ESXi firewall rule using an XML file, however the rules do not appear in thevSphere Web Client.Which action sho ...
分类:
其他好文 时间:
2017-05-12 01:51:03
阅读次数:
342
图片先显示 而后化为颗粒 、飞出、消失 效果图: 代码: ...
分类:
其他好文 时间:
2017-05-10 16:30:09
阅读次数:
363