Problem DescriptionThere are n people and n
target, everyone should get one target, no two people get the same target, the
last one who get the target...
分类:
其他好文 时间:
2014-05-06 09:00:51
阅读次数:
354
为了复习这个,我们先来看看复数域上的级数如何定义的.这与$\mathbb
R$上一样.称一个复级数$\sum\limits_{n=1}^{\infty}z_{n}(z_{n}\in\mathbb
C)$收敛是指其部分和$S_{n}=\sum\limits_{k=1}^{n}z_{k}$收敛,并将.....
分类:
其他好文 时间:
2014-05-06 00:52:03
阅读次数:
487
加群看见的但是计算好慢,谁有更优的算法,麻烦说一下。factor=[]for x in
xrange(1, 987654//2+1): if 987654%x==0: factor.append(x)sum=0for y in xrange(1,
1000000000): ...
分类:
编程语言 时间:
2014-05-06 00:37:50
阅读次数:
851
Given a binary tree containing digits from 0-9
only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-05-05 23:55:36
阅读次数:
407
Given two binary strings, return their sum
(also a binary string).For example,a ="11"b
="1"Return"100".思路:一个二进制字符串相加;首先从字符串的末尾开始,先二进制字符转化为数字,然后再相加;然后将...
分类:
其他好文 时间:
2014-05-05 23:10:15
阅读次数:
319
# Definition for a binary tree node# class
TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right
...
分类:
其他好文 时间:
2014-05-05 22:56:23
阅读次数:
419
原地址:http://game.ceeger.com/Unity/Doc/2011/Unity3D_For_Android.html我自认为抵挡诱惑的能力还是很强大的,关键的时候还能把持住自己。今天逛了一下南京的丹凤街,终于受不住Android这美眉的诱惑。她虽脸蛋不怎么滴,但身材火热,且性感,廉价...
分类:
移动开发 时间:
2014-05-05 22:18:52
阅读次数:
504
原地址:http://www.davebost.com/2013/08/30/creating-a-unity-game-for-windows-8Therecent
release of Unity 4.2brings with it full-support for deploying Unit...
本题因为数据量小,可以使用暴力法,时间效率是O(n^3)
但是这里巧用最大子段和的思想,可以把时间效率降到O(n)
思想:
1 想使用一个新的数列,计算连续出现了多少个1和连续出现了多少个零
2 求这个新数列的最大子段和
3 Flip最大子段中的 0 和 1,
4 计算出结果
比暴力法复杂很多了,但是时间效率却提高了三个档次。...
分类:
其他好文 时间:
2014-05-02 10:39:46
阅读次数:
584
首先需要建立相应的report报表 如图:
这里的sql如下:
SELECT
PC.Name AS Category, PS.Name AS Subcategory,
DATEPART(yy, SOH.OrderDate) AS Year,
'Q' + DATENAME(qq, SOH.OrderDate) AS Qtr,
SUM(DET.UnitPrice * DET.Ord...
分类:
其他好文 时间:
2014-05-02 05:21:11
阅读次数:
335