题目链接:4Sum
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
Note:
...
分类:
其他好文 时间:
2015-01-30 22:42:54
阅读次数:
251
今天终于把万恶的期末考试给考完了!想想考的都是专业课,原本以为肯定会复习地很开心。因为不用像以前一样只是考试前一周什么都不会,然后考前疯狂地看书刷题,考完之后瞬间遗忘。不过事实证明...为了考试看书还是非常痛苦...即使是喜欢的算法,C++,操作系统....不过幸好已经考完啦!接下来为期四周的寒假又不用为考试而学习了!
大三上这一个学期接触的主要的东西依旧还是底层的系统和算法吧。在开学的第一个月...
分类:
其他好文 时间:
2015-01-30 22:40:58
阅读次数:
222
题目链接:Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing ...
分类:
其他好文 时间:
2015-01-30 22:43:16
阅读次数:
179
题目链接:Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brackets must close in the correct order, "()" and "...
分类:
其他好文 时间:
2015-01-30 22:40:16
阅读次数:
227
UItableViewCell选中时的颜色及tableviewCell的select和deselect cell点击后再跳回当前页面cell的默认点击状态应该取消 pop返回或者push返回viewController时,cell自动取消选中状态...
分类:
其他好文 时间:
2015-01-30 22:41:23
阅读次数:
610
...
分类:
其他好文 时间:
2015-01-30 22:40:01
阅读次数:
309
这里布局和mainfest的定义省了,直接看样例
package com.example.message2;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickLis...
分类:
其他好文 时间:
2015-01-30 22:41:19
阅读次数:
201
Connect
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1148
Accepted: 375
Description
Figure 1
Figure 2
Figure 3a
Figure 3b
Figure...
分类:
其他好文 时间:
2015-01-30 22:41:51
阅读次数:
293
package com.example.looper;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import and...
分类:
其他好文 时间:
2015-01-30 22:41:09
阅读次数:
213
多边形的组成条件是最长边不能占边长总和的一半,将木棒想象成圆多砍一刀,然后是简单概率.
Polygon
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
Submit Status
Description
...
分类:
其他好文 时间:
2015-01-30 22:40:26
阅读次数:
209
UITableViewCell自定义分割线 cell的分割线不能是整个屏幕的长度...
分类:
其他好文 时间:
2015-01-30 22:40:54
阅读次数:
175
Clairewd’s message
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3621 Accepted Submission(s): 1388
Problem Description
Clairewd is...
分类:
其他好文 时间:
2015-01-30 22:38:26
阅读次数:
365
题目大意:如上。有N个座位,第一个上去随意找位子坐。然后上去M个人,这M个人也随意
找位子坐,问第M个人坐到自己位子上的概率为多少。
思路:因为算上第1个人所有人都是随意坐,那么第M个人坐到正确位子上的概率和第1个人坐
到正确位子上的概率一样,都是1/N。...
分类:
其他好文 时间:
2015-01-30 22:38:15
阅读次数:
498
??
"kewastUnPackStats(): bad magic 1 (0xXXXXXXXXX, 0)" in Alert Logfile After Upgrading to 11.2.0.1 (文档 ID 1227524.1)
转到底部
In this Document
...
分类:
其他好文 时间:
2015-01-30 22:40:44
阅读次数:
240
在介绍Dubbo的内部逻辑的时候提到很多次注册中心的概念.实现注册中心的有很多,主要是以下四个注册中心分别是:
Multicast注册中心
Zookeeper注册中心
Redis注册中心
Simple注册中心
这里将对注册中心的一个实现Zookeeper跟大家分享,因为Zookeeper是应用比较多,也是我们项目中实际用到的注册中心.
...
分类:
其他好文 时间:
2015-01-30 22:37:22
阅读次数:
278
一、协方差的意义
学过概率统计的孩子都知道,统计里最基本的概念就是样本的均值,方差,或者再加个标准差。首先我们给你一个含有n个样本的集合,依次给出这些概念的公式描述,这些高中学过数学的孩子都应该知道吧,一带而过。
均值:
标准差:
方差:
很显然,均值描述的是样本集合的中间点,它告诉我们的信息是很有限的,
而标准差给我们描述的则是样本集合的各个样本点...
分类:
其他好文 时间:
2015-01-30 22:37:22
阅读次数:
302
Tomcat的webapps目录中,有两个应用:app1、app2,如果没有nginx,我们的访问路径为:
http://www.domainname.com:8080/app1
http://www.domainname.com:8080/app2
端口号暴露给用户很不好看也不安全。修改Tomcat配置文件的做法,也可以,但感觉麻烦一些,在这里并不推荐。让用户感觉不到Tomcat的存在,并让Tomcat服务器安全的藏在Nginx后面,是我们的目的。...
分类:
其他好文 时间:
2015-01-30 22:39:25
阅读次数:
215