码迷,mamicode.com
首页 >  
搜索关键字:constant pool    ( 4909个结果
LeetCode 41:First Missing Positive
Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algorithm should run in O(n) time and uses constant...
分类:其他好文   时间:2016-01-04 11:45:07    阅读次数:222
淡淡理解下AngularJS中的module
在AngularJS中module是一个核心的存在,包括了很多方面,比如controller, config, service, factory, directive, constant, 等等。在Javascript中如何实现类似module的功能呢?或者说,我们定义一个函数,如何把函数内的函数向...
分类:Web程序   时间:2016-01-04 11:33:11    阅读次数:186
Oracle学习之内存块组成结构及4031错误分析
shared pool内存块组成结构:(library cath,free,row cath)chain:chunk:4031:(硬解析大量存在时会产生)select count(*) from x$ksmsp; --查看chunkselect count(*) from dba_objects;a...
分类:数据库   时间:2016-01-04 08:54:32    阅读次数:156
Oracle学习之shared pool--硬解析和软解析
1.shared pool(共享池)的组成 3块区域:free cache、library cache、row cache free cache:空闲空间 library cache:主要缓存SQL语句以及SQL语句对应的执行计划 row cache:数据字典缓存 select * fro...
分类:数据库   时间:2016-01-03 23:50:17    阅读次数:339
Min Stack leetcode
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:其他好文   时间:2016-01-03 22:25:25    阅读次数:248
LeetCode 148:Sort List
Sort a linked list in O(n log n) time using constant space complexity. //题目要求:对链表进行排序 //解题思路:归并排序,再Merge //归并排序的基本思想是:找到链表的中间节点,然后递归对前半部分和后半部分分别进行归并排序,最后对两个排好序的链表进行Merge class Solution { public: ...
分类:其他好文   时间:2016-01-03 17:38:48    阅读次数:159
NSString用法,object-C数组以及字符串拼接和分割
一、介绍使用NSString创建一个字符串的代码如下:#import int main (int argc, char *argv[]){ NSAutoreleasePool*pool=[[NSAutoreleasePool alloc]init]; NSString *str=@"Progra.....
分类:编程语言   时间:2016-01-02 22:14:18    阅读次数:622
数据库链接池--简单的理解
commons-logging这个包可以不要package rocky.pool.dbcp;import java.sql.Connection;import java.sql.SQLException;import org.apache.commons.dbcp.BasicDataSource;p...
分类:数据库   时间:2016-01-02 14:07:03    阅读次数:317
jdeis 一些相关的源码
1,JedisPool的使用 //WHEN_EXHAUSTED_FAIL = 0; 直接抛出异常throw new NoSuchElementException("Pool exhausted"); //WHEN_EXHAUSTED_BLOCK = 1;borr...
分类:其他好文   时间:2015-12-31 12:48:35    阅读次数:261
LeetCode 117:Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant ...
分类:其他好文   时间:2015-12-31 01:47:10    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!