有一家叫甲骨文的粮店,老板很严谨,为了防止仓库的粮食在买入卖出的时候发生问题,他制订一套流程,首先进出仓库的每一旦粮食都要求有一个编号(SCN),而且出入库之前必须先放到一个平台上(buffer
cache),他命令仓库叫大头的伙计(datafile head)来首先记录这个编号,然后每隔一定的时间...
分类:
数据库 时间:
2014-05-27 02:03:39
阅读次数:
303
一、(一)中的代码还可以修改的地方。在(一)中,如果是运行在服务器下,如apache等,可以把head和navigation的div抽取出来,放置在另一个html文件里,然后在页面中,include进来。这样,当要对导航栏进行修改时,只需要修改一个文件,而不用修改所有相关的页面文件。不过,我这里没有...
分类:
编程语言 时间:
2014-05-19 19:01:55
阅读次数:
388
原文:JavaScript网站设计实践(二)实现导航栏当前所选页面的菜单项高亮显示一、(一)中的代码还可以修改的地方。在(一)中,如果是运行在服务器下,如apache等,可以把head和navigation的div抽取出来,放置在另一个html文件里,然后在页面中,include进来。这样,当要对导...
分类:
编程语言 时间:
2014-05-19 13:45:07
阅读次数:
358
迭代器模式和组合模式混用前言
园子里说设计模式的文章算得上是海量了,所以本篇文章所用到的迭代器设计模式和组合模式不提供原理解析,有兴趣的朋友可以到一些前辈的设计模式文章上学学,很多很有意思的。在Head
First 设计模式这本书中,也有说迭代和组合模式混用的方法,但是使用的语言是JAVA,实现起....
分类:
其他好文 时间:
2014-05-19 13:37:27
阅读次数:
409
【题目】
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will ...
分类:
其他好文 时间:
2014-05-18 18:48:03
阅读次数:
269
题目:给一个数组和给定的目标值,要求在数组里找出三个元素,这三个元素的和最接近目标值,当然等于是最好的。
用3sum的方法,把判定条件作些修改。
int twoSum(vector &num, int start, int target)
{
if(num.size() = num.size())
return -target;
int head = start;
int t...
分类:
其他好文 时间:
2014-05-18 10:49:12
阅读次数:
217
【题目】
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values in the list, only nodes it...
分类:
其他好文 时间:
2014-05-18 08:37:57
阅读次数:
370
好多人都是为了找实习、找工作,看看思路,手写下这个问题的代码。如果有机会还是最好真正调试一下,还是有很多细节需要注意的。不多说了,代码记录如下:
Node* Merge(Node *h1,Node *h2)
{
Node *head,*pCurrent,*head1,*head2;
head1 = h1;
head2 = h2;
if(head1==NULL)
retu...
分类:
其他好文 时间:
2014-05-18 02:59:29
阅读次数:
214
/这里是链表的创建其包含的是头指针phead,头节点,以及尾节点p->next = NULL
为链表创建结束标志。/判断指针为空十分重要,当然也不能忘了释放,代码是:if(head !=NULL){free(head);head = NULL;}head
= (SLNode*)malloc(size...
分类:
其他好文 时间:
2014-05-17 19:40:54
阅读次数:
255
浮层内嵌iframe及frame集合窗口,刷新父页面的多种方法 弹出子页面 子窗口刷新父窗口
刷新以open()方法打开的窗口 刷新以winodw.showModelDialog()方法打开的窗口Javascript代码方法二 : 在Head中添加
在body中添加 在底部脚本中: reloa...
分类:
Web程序 时间:
2014-05-17 18:53:28
阅读次数:
298