码迷,mamicode.com
首页 >  
搜索关键字:delete objects    ( 15148个结果
LeetCode: Sort Colors [075]
【题目】 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:其他好文   时间:2014-06-07 01:17:49    阅读次数:269
EMC-- DFC --Sessions and Session Managers
DFC - Documentum Foundation Classes 位于Content server和client 之间。 用来做服务端业务逻辑和客制。 BOF- Business Object Framework. 模组。 最重要的两个模组是 1. TBOs --type based objects 2. SBOs-- service based objects 3. Aspec...
分类:其他好文   时间:2014-06-05 09:09:06    阅读次数:264
C++ Primer 学习笔记_89_用于大型程序的工具 --异常处理[续2]
用于大型程序的工具--异常处理[续2]八、自动资源释放 考虑下面函数:void f() { vector v; string s; while (cin >> s) { v.push_back(s); } string *p = new string[v.size()]; //... delete p; } 在正...
分类:编程语言   时间:2014-06-05 06:07:27    阅读次数:393
捉虫记录:解决内存泄漏问题
LinJM 2014_05_23 解决内存泄漏问题 在VS2010的Debug模式下面,点击运行,然后退出,之后会在输出框里面出现内存泄漏信息(如下图所示)。 Analysis:主要是new了之后没有delete相应的变量,所以,很明显就是要在不使用时delete掉这个变量。不过,有个问题,如下图所示:...
分类:其他好文   时间:2014-06-04 23:25:00    阅读次数:322
Oracle使用并行建索引需要注意的问题
建索引时,我们为了建索引快,会加上并行,加上并行之后,此列索引就会是并行了。访问有并行度的索引时,CBO可能可能会考虑并行执行,这可能会引发一些问题,如在服务器资源紧张的时候用并行会引起更加严重的争用。当使用并行后,需要把并行度改回来。 SQL> drop table test purge; SQL> create table test as select * from dba_objects...
分类:数据库   时间:2014-06-03 05:48:26    阅读次数:375
LeetCode: Remove Duplicates from Sorted List [082]
【题目】 Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 【题意】 给定一个已排序的链表,删除其中的重复元素 【思路】 维护两个指针prev和cur, cur指针负责扫描链表,prev指向cur的前一...
分类:其他好文   时间:2014-06-03 04:05:39    阅读次数:231
Geeks Splay Tree Insert 树的插入操作
Splay树的插入操作,只需要处理好插入节点的孩子节点就可以了,最重要的是不要破坏了BST的基本规则。 因为高度并不是Splay树的首要因素,所以插入的时候也是使用splay操作,然后在根节点插入。 参考:http://www.geeksforgeeks.org/splay-tree-set-2-insert-delete/ 对比一下使用插入创建的树和手工创建数的区别,先序遍历的结果...
分类:其他好文   时间:2014-05-31 21:47:50    阅读次数:320
LeetCode: Remove Duplicates from Sorted List II [083]
【题目】 Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. For example, Given 1->2->3->3->4->4->5, return 1->2->5. Given 1->1->1->2->3, return 2->3. 【题意】 给定一个有序链表,删出其中重复出现的值...
分类:其他好文   时间:2014-05-31 21:14:11    阅读次数:333
Jetty学习二:配置概览-怎么配置Jetty
Jetty POJO配置Jetty的核心组件是Plain Old Java Objects(POJOs);配置Jetty的大部分工作就是在Jetty POJOs上的初始化、装配和设置域的处理,你能通过以下的方式来实现:1)直接通过Java代码初始化和装配Jetty对象。这个在后面Embedding ...
分类:其他好文   时间:2014-05-31 20:25:59    阅读次数:338
windows下常用快捷键
windows下常用快捷键:显示桌面: win徽标+D打开资源管理器: win徽标+E打开任务管理器: Ctrl+Alt+delete任务切换: Alt+Tab多窗口应用程序的窗口切换: Ctrl+Tab/F2关闭应用程序: ...
分类:Windows程序   时间:2014-05-31 18:28:25    阅读次数:391
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!