public class SList { private SListNode head; private int size; /** * SList() constructs an empty list. **/ public SList() { size = 0; h...
分类:
其他好文 时间:
2015-07-23 13:47:25
阅读次数:
107
一、为什么有CART回归树 以前学过全局回归,顾名思义,就是指全部数据符合某种曲线。比如线性回归,多项式拟合(泰勒)等等。可是这些数学规律多强,硬硬地将全部数据逼近一些特殊的曲线。生活中的数据可是千变万化。那么,局部回归是一种合理地选择。在斯坦福大学NG的公开课中,他也提到局部回归的好处。其中,C....
分类:
其他好文 时间:
2015-07-23 13:47:10
阅读次数:
165
我的环境是 centos 6.5 x64安装 oh my zsh 后,home end 键失效,解决办法为在 .zshrc 里添加设置如下#Rebind HOME and END to do the decent thing:bindkey '\e[1~' beginning-of-linebind...
分类:
其他好文 时间:
2015-07-23 13:46:49
阅读次数:
244
UNP学习笔记
分类:
其他好文 时间:
2015-07-23 13:46:38
阅读次数:
148
这些操作命令都是从廖雪峰老师的官网上看过后记下来的,以下是廖雪峰老师的官网,大家可以看看,教程不错~http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 1.在windows上安装git....
分类:
其他好文 时间:
2015-07-23 13:46:10
阅读次数:
112
最近请同事帮忙在ESXi建了一台虚拟机。安装完成后发现虚拟机名字打错了,那“虚拟机如何重命名?”试一试打开vSphere Client先将虚拟机关机再Remove from Inventory,再打开Datastore Browser将文件夹及相关文件重命名。修改*.vmdk时出现如下信息看来不能通...
分类:
其他好文 时间:
2015-07-23 13:46:28
阅读次数:
2096
Given an array ofnintegers wheren> 1,nums, return an arrayoutputsuch thatoutput[i]is equal to the product of all the elements ofnumsexceptnums[i].Solv...
分类:
其他好文 时间:
2015-07-23 13:42:56
阅读次数:
98
http://acm.hdu.edu.cn/showproblem.php?pid=2066一个人的旅行Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s)...
分类:
其他好文 时间:
2015-07-23 13:43:46
阅读次数:
243
UVA1600PatrolRobotTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionA robot has to patrol around a rectangular area which...
分类:
其他好文 时间:
2015-07-23 13:44:52
阅读次数:
159
Given acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete binary tree every level, except...
分类:
其他好文 时间:
2015-07-23 13:42:41
阅读次数:
86
Given an integer, write a function to determine if it is a power of two.1 bool isPowerOfTwo(int n) {2 if(n<=0)3 return false;4 if(n&(n-1...
分类:
其他好文 时间:
2015-07-23 13:44:20
阅读次数:
97
Implement a basic calculator to evaluate a simple expression string.The expression string contains onlynon-negativeintegers,+,-,*,/operators and empty...
分类:
其他好文 时间:
2015-07-23 13:43:59
阅读次数:
86
题解:哈哈哈我过了!!!主席树+树状数组写起来还真是hentai啊。。。在这里必须分享我的一个沙茶错!!!看这段代码:void get(int x,int d){ if(!d)for(lt[ltot=1]=root[x];x;x-=x&-x)if(c[x])lt[++ltot]=c[x]; ...
分类:
其他好文 时间:
2015-07-23 13:43:42
阅读次数:
125
官方英文题解:http://codeforces.com/blog/entry/19237Problem A:题目大意:给出内角和均为120°的六边形的六条边长(均为正整数),求最多能划分成多少个边长为1的正三角形。题解:把六边形补全变成一个正三角形,然后减去三个角的正三角形即可。Problem B...
分类:
其他好文 时间:
2015-07-23 13:41:20
阅读次数:
108
LsitView和Adapter参考:http://www.cnblogs.com/xiaowenji/archive/2010/12/08/1900579.html工作原理:1.ListView针对List中每个item,要求adapter给我一个视图(getView)2.一个新的视图被返回并显示...
分类:
其他好文 时间:
2015-07-23 13:43:38
阅读次数:
123
background-color属性有没有继承性:因为对象的背景默认是透明的,所以如果父对象设置了背景颜色之后,子对象也呈现为父对象的背景颜色,好像子对象继承了父对象的背景颜色,其实这是一种视觉错误。下面通过一个实例来说明一下background-color不具有继承性。实例代码:蚂蚁部落 ...
分类:
其他好文 时间:
2015-07-23 13:41:59
阅读次数:
347
Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ...
分类:
其他好文 时间:
2015-07-23 13:41:45
阅读次数:
78