Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space ...
分类:
编程语言 时间:
2016-07-03 11:53:49
阅读次数:
159
Sort a linked list in O(n log n) time using constant space complexity. Example Given 1->3->2->null, sort it to 1->2->3->null. Merge Sort version 1 /** ...
分类:
其他好文 时间:
2016-07-03 11:39:05
阅读次数:
163
Given two sorted integer arrays A and B, merge B into A as one sorted array. Notice You may assume that A has enough space (size that is greater or eq ...
分类:
其他好文 时间:
2016-07-01 11:33:37
阅读次数:
146
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo ...
分类:
其他好文 时间:
2016-07-01 09:02:15
阅读次数:
139
Cosine similarity is a measure of similarity between two vectors of an inner product space that measures the cosine of the angle between them. The cos ...
分类:
其他好文 时间:
2016-07-01 06:40:05
阅读次数:
161
一.View及其子类1.view类view类继承至Object实现了Drawable.CallbackKeyEvent.CallbackAccessibilityEventSource接口.直接子类有:AnalogClock,ImageView,KeyboardView,MediaRouteButton,ProgressBar,Space,SurfaceView,TextView,TextureView,ViewGroup,ViewStub间接子类无数:Ab..
分类:
移动开发 时间:
2016-06-30 23:37:30
阅读次数:
542
https://github.com/junegunn/vim-easy-align 用vundle安装, 添加下面到vimrc 我感觉就是使用有点难学 先用v选择多行 ga进入easyalign模式 默认向左对其,比如按照空格对其 *<space> 向右对其 <enter>*<space> 居中对 ...
分类:
系统相关 时间:
2016-06-30 19:55:14
阅读次数:
260
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. Hi ...
分类:
其他好文 时间:
2016-06-30 01:07:28
阅读次数:
177
1.white-space 属性设置如何处理元素内的空白。 这个属性声明建立布局过程中如何处理元素中的空白符。值 pre-wrap 和 pre-line 是 CSS 2.1 中新增的。 2.可能的值 规定应该从父元素继承 white-space 属性的值。 ...
分类:
Web程序 时间:
2016-06-28 20:15:15
阅读次数:
158
好吧,我还是回来了,竞赛结束后也没怎么碰那个unnamed.space了,现在早就已经过期了。同样的几个月没有碰OI了,手明显生疏很多,毕业了重新搞搞OI吧,想必落下了很多。 高考考得很渣,不过很荣幸自主招生进了电子科技大学某郫县男子技校,于是去他们的OJ上围观了一下,随便做几题玩玩。 嘛,嘛,不提 ...
分类:
其他好文 时间:
2016-06-28 07:04:45
阅读次数:
277