https://oj.leetcode.com/problems/two-sum/http://fisherlei.blogspot.com/2013/03/leetcode-two-sum-solution.htmlpublicclassSolution{
publicint[]twoSum(int[]numbers,inttarget){
//SolutionA
//returntwoSum_SortAndTwoPointer(numbers,target);
//SolutionB
returntw..
分类:
其他好文 时间:
2015-01-02 16:17:51
阅读次数:
144
目标分布(Target Distribution)
在实际情形中,训练数据的误标签的情况,输入数据某一维不准确的情况,都可能导致数据信息不精准,产生噪声数据。
由于受到噪声的影响,我们现在可以把y也看做是一种概率分布,y也是从某种分布中取样而来的,即y~P(y|x)。
这里的P(y|x)被称为目标分布。
回头来看,我们可以把学习的目标总结为,在常见的输入(符合P(x...
分类:
其他好文 时间:
2015-01-02 11:01:42
阅读次数:
158
判断事件触发的元素:var tag = window.event.target || window.event.srcElement; if (tag.tagName.toLowerCase() == "input") { return; }window.event.srcElement与windo...
这道题没什么好说的,二分法查找class Solution {public: vector range; vector searchRange(int A[], int n, int target) { range.push_back(-1); range.push_b...
分类:
其他好文 时间:
2015-01-01 17:19:32
阅读次数:
135
进入项目对应的Build目录后,以下指令:$lipo -create Debug-iphoneos/libSalamaDeveloper.a Debug-iphonesimulator/libSalamaDeveloper.a -output libSalamaDeveloper.a
分类:
其他好文 时间:
2015-01-01 16:01:12
阅读次数:
250
Search Insert PositionGiven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if ...
分类:
其他好文 时间:
2015-01-01 01:26:32
阅读次数:
155
API?Change:?Added?concept?of?target?actor,?separate?from?the?actor?the?action?is?added?to.?This?allows?an?action?to?be?added?to?one?actor?but?affect?another.?This?is?...
分类:
其他好文 时间:
2014-12-31 21:37:57
阅读次数:
204
主机内存256G,sga_target准备设置为160G,DBCA创建数据库时一直报错ORA-00064: object is too large to allocate on this O/S (1,15429280)
直接使用DBCA默认参数把库建好后,再次使用命令来修改,报错依旧。经查,参考文档Database startup can fail with ORA-00064 Errors...
分类:
其他好文 时间:
2014-12-31 16:25:41
阅读次数:
142
平常用iptables只知道添加规则, 比如:
下面我只打开22端口,看我是如何操作的,就是下面2个语句
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT
再查看下 iptables -L -n 是否添加上去, 看到添加了
Chain INPUT (policy DROP)
target prot opt source destin...
分类:
其他好文 时间:
2014-12-31 14:41:49
阅读次数:
221
1. 问题描述 最近新建了一个post事件的插件,传入的参数处理如下: 1: if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)
2: {
3: Enti...
分类:
其他好文 时间:
2014-12-31 14:37:06
阅读次数:
220