ImplementPic. It should return a slice of lengthdy, each element of which is a slice ofdx8-bit unsigned integers. When you run the program, it will di...
分类:
其他好文 时间:
2014-10-27 06:54:12
阅读次数:
281
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-10-27 06:54:01
阅读次数:
203
1、有关html/css, js, php, cgi 的一些认识
当我们浏览器访问一个站点的静态文件,会把文件内容都下载下来(一般压缩),当然如果遇到外联的css/js,会再发起请求得
到。如果我们右键查看网页源代码,一片混乱没法看,可以使用firefox + firebug,可以清晰看到html dom tree,右键inspent
element 可以很快定位到tree...
分类:
Web程序 时间:
2014-10-26 21:24:24
阅读次数:
279
相信很多朋友在修改主题css时遇到过一些问题,比如说出现这个elememt.style,这个有时候无法直接修改,因为找不到。因此可以通过css中的 !important 语法优先权来实现我们想要的效果。举个例子:默认情况下上面的背景颜色是绿色,我们找不到element.style该怎么修改呢,这时候...
分类:
其他好文 时间:
2014-10-26 16:55:53
阅读次数:
170
block element * address - 地址 * blockquote - 块引用 * center - 举中对齐块 * dir - 目录列表 * div - 常用块级容易,也是css layout的主要标签 * dl - 定义列表 * fieldset - form控制组...
分类:
Web程序 时间:
2014-10-26 16:54:43
阅读次数:
220
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal i...
分类:
其他好文 时间:
2014-10-26 14:25:29
阅读次数:
172
问题描述:
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
思路:
...
分类:
其他好文 时间:
2014-10-26 11:46:08
阅读次数:
251
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-10-26 11:34:46
阅读次数:
243
题目:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't ...
分类:
其他好文 时间:
2014-10-26 00:20:26
阅读次数:
259
题目:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo...
分类:
其他好文 时间:
2014-10-25 22:57:43
阅读次数:
155