原文 It was Sunday. I never get up early on Sundays. I sometimes stay in bed until lunchtime. Last Sunday I got up very late. I looked out of the window. It was dark outside. "What a day!" I though...
分类:
其他好文 时间:
2015-06-25 14:15:10
阅读次数:
151
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array nums = [1,1,1,2,2,3],
Your function should return length = 5, with the first fi...
分类:
其他好文 时间:
2015-06-25 09:05:36
阅读次数:
109
stopword=‘‘
str=‘‘
forlineiniter(raw_input,stopword):
str+=line+‘\n‘
L=str.strip().split(‘\n‘)
L_num=[]
forcinL:
L_num.append(int(c))
L_down=L_num[:]
L_up=L_num[:]
L_down.sort(reverse=1)
L_up.sort()
print‘L_down=‘,L_down
print‘L_up=‘,L_up
ifL_num==L_down:
p..
分类:
其他好文 时间:
2015-06-25 01:36:40
阅读次数:
150
//ifconfig[root@localhostnetwork-scripts]#ifconfigenp5s0f0:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500ether0c:c4:7a:32:06:bctxqueuelen1000(Ethernet)RXpackets2789bytes1502507(1.4MiB)RXerrors0dropped0overruns0frame0TXpackets0bytes0(0.0B)TXerrors0d..
分类:
其他好文 时间:
2015-06-25 01:34:32
阅读次数:
508
I recently reinstalled the software on my NAS (open media vault) and tidied up the host name etc. As part of this I changed the name of the iSCSI targ...
分类:
其他好文 时间:
2015-06-24 22:24:25
阅读次数:
247
protected void onPostCreate (Bundle savedInstanceState)Added in API level 1Called when activity start-up is complete (after onStart() and onRestoreIns...
分类:
其他好文 时间:
2015-06-24 18:35:48
阅读次数:
165
Setting up the data and the model前面我们介绍了一个神经元的模型,通过一个激励函数将高维的输入域权值的点积转化为一个单一的输出,而神经网络就是将神经元排列到每一层,形成一个网络结构,这种结构与我们之前介绍的线性模型不太一样,因此score function也需要重新定义,神经网络实现了一系列的线性映射与非线性映射,这一讲,我们主要介绍神经网络的数据预处理以及score...
分类:
Web程序 时间:
2015-06-24 16:23:40
阅读次数:
211
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2015-06-24 10:59:38
阅读次数:
112
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖环境到一个可移植的容器中,然后发布到任何流行的 Linux 机器上。 一、安装 1、安装准备 up kernel to 3.8 rpm --import https://www.elre...
分类:
其他好文 时间:
2015-06-23 23:24:36
阅读次数:
427
Leetcode 01 Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return in...
分类:
其他好文 时间:
2015-06-23 23:04:42
阅读次数:
126