码迷,mamicode.com
首页 >  
搜索关键字:sort order by 优化    ( 73021个结果
JAVA服务器端性能优化----String
String的连接 方法1 使用+= String s = new String(); for (int i = 0; i   s+= "a"; }   方法2 使用带缓冲区的StringBuffer StringBuffer s = new StringBuffer(); for (int i = 0; i  s.append("a") }   方法1执行时间大概在...
分类:编程语言   时间:2014-07-22 23:02:33    阅读次数:311
【LeetCode】- Search Insert Position(查找插入的位置)
[ 问题: ] Given 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 it were inserted in order. You may assume no duplicates in th...
分类:其他好文   时间:2014-07-22 23:01:15    阅读次数:270
JVM的GC概述
JVM的GC概述GC即垃圾回收,是指jvm用于释放那些不再使用的对象所占用的内存。在充分理解了垃圾收集算法和执行过程后,才能有效的优化它的性能。有些垃圾收集专用于特殊的应用程序。比如,实时应用程序主要是为了避免垃圾收集中断,而大多数OLTP应用程序则注重整体效率。垃圾收集的目的在于清除不再使用的对象...
分类:其他好文   时间:2014-05-01 22:39:20    阅读次数:559
SPDY和HTTP
SPDY 是什么 ? SPDY 是 Google 开发的基于传输控制协议 (TCP) 的应用层协议。SPDY 协议旨在通过压缩、多路复用和优先级来缩短网页的加载时间和提高安全性。(SPDY 是 Speedy 的昵音,意思是更快) SPDY 协议只是在性能上对 HTTP 做了很大的优化,其核心思想是尽...
分类:其他好文   时间:2014-05-01 22:23:01    阅读次数:472
hdu acm 1425 sort(哈希表思想)
sortTime Limit: 6000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 25803Accepted Submission(s): 7764Problem Descr...
分类:其他好文   时间:2014-05-01 20:50:16    阅读次数:583
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-05-01 20:18:54    阅读次数:425
windows无法启动VMware Authorization Service服务
VMware也用了一年了,一直好好的,今天突然出现启动不了VMware里的linux系统了,Authorization Service问题,在windows系统里查看服务,找到VMware Authorization Service,点启动,弹出无法启动VMware Authorization Se...
分类:Windows程序   时间:2014-05-01 19:04:13    阅读次数:2955
hdu 1885 Key Task (三维bfs)
题目之前比赛的一个题, 当时是崔老师做的,今天我自己做了一下。。。。还要注意用bfs的时候 有时候并不是最先到达的就是答案,比如HDU 3442这道题是要求最小的消耗血量伤害,但是并不是最先到达目标点的路径就是最小的伤害,因为每一个点的伤害是 不一样的, 这种情况要用优先队列优化, 对伤害优化。题意...
分类:其他好文   时间:2014-05-01 18:50:36    阅读次数:405
HDU 3415 Max Sum of Max-K-sub-sequence 最长K子段和
链接:http://acm.hdu.edu.cn/showproblem.php?pid=3415 题意:给出一个数环,要找出其中9长度小于等于K的和最大的子段。 思路:不能采用最暴力的枚举,题目的数据量是10^5,O(N^2)的枚举回去超时,本题采用的很巧妙的DP做法,是用单调队列优化的DP。 运用的是STL的deque,从i:1~a找到以其中以i为尾的符合条件的子段,并将i本身放入双向队...
分类:其他好文   时间:2014-05-01 08:32:53    阅读次数:324
Sort Colors
leetcode,三色排序...
分类:其他好文   时间:2014-04-30 22:14:39    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!