Givennnon-negative integersa1,a2, ...,an, where
each represents a point at coordinate (i,ai).nvertical lines are drawn such that
the two endpoints of ...
分类:
其他好文 时间:
2014-06-04 21:09:33
阅读次数:
307
Given a non-negative number represented as an
array of digits, plus one to the number.The digits are stored such that the most
significant digit is at...
分类:
其他好文 时间:
2014-06-04 19:19:52
阅读次数:
185
前言
最近系统上线完修改完各种bug之后,功能上还算是比较稳定,由于最近用户数的增加,不知为何经常出现无法登录、页面出现错误等异常,后来发现是由于WCF服务时不时的就死掉了。后来就开始分析问题。得到的初步解决方案如下:
1、在Web端调用WCF服务使用后,未释放未关闭导致新的链接无法访问 ...
分类:
其他好文 时间:
2014-06-03 09:45:22
阅读次数:
316
http://java.dzone.com/articles/performance-tuningFor most typical
Spring/Hibernate enterprise applications, the application performance depends
almost...
分类:
移动开发 时间:
2014-05-31 16:53:03
阅读次数:
404
第一回 开篇 D3D渲染流程简介 开发这个3D
engine已经两年半了,从06年8月刚开始统计的4万多行,到今年7月份的21万多行,有一些感慨,感觉有那么点成就感,不过更多的是惴惴之心:这些代码可以很好的在一起工作吗,足够快吗?bug肯定不少,因为测试的强度毕竟不高,这还不是最重要,架构上会不会....
分类:
其他好文 时间:
2014-05-31 06:07:27
阅读次数:
507
计算机的好处是它永远不会欺骗你, 它只会按部就班的执行, 所以很多看似奇怪(甚至看似不可思议的问题),
只要你理解了程序背后的机制原理,都是可以找出根本原因的。
分类:
其他好文 时间:
2014-05-31 00:57:09
阅读次数:
279
DescriptionGeorge took sticks of the same
length and cut them randomly until all parts became at most 50 units long. Now
he wants to return sticks to ...
分类:
其他好文 时间:
2014-05-30 23:00:32
阅读次数:
395
在开发D3D应用程序时,我们会使用Debug
Layer来调试应用程序,以确保我们的程序在最终发布时没有warnings和errors。不过最近在开发应用程序时遇到了这样的问题,就是我把多个网格模型的顶点数据放在一个vertex
buffer中,与此同时也把它们的索引数据放在一个index buff...
分类:
其他好文 时间:
2014-05-30 21:17:41
阅读次数:
480
Say you have an array for which theithelement
is the price of a given stock on dayi.If you were only permitted to complete at
most one transaction (ie...
分类:
其他好文 时间:
2014-05-30 16:30:00
阅读次数:
282
题目:在二维坐标系下,有很多个挡板,有两个挡板之间能够积蓄的水的最大面积。如下图所示:思路:我只想到暴力解法,用O(n2)的时间复杂度算出任意两个挡板形成的面积,这必须的过不了。优化解法:O(n).用两个指针
i 和 j 指向整个height[]数组的头尾。if i 指向的高度 决定,因此不会比现在...
分类:
其他好文 时间:
2014-05-29 17:40:09
阅读次数:
312