queuequeue先进先出可用函数empty(); //判断队列是否为空size(); //返回队列大小top(); //返回队首元素back(); //返回队尾元素push(); //入队pop(); //出队priority_queue优先化队列默认为从大到小,对首元素最大,队尾元...
分类:
其他好文 时间:
2015-08-03 22:14:18
阅读次数:
124
border-collapse: collapse; /*相邻边框的合并*/caption-side:top; /*标题放在上面 right在表格的右边 bottom在表格的下边 left在表格的左边*/empty-cells:show; /*show:默认值。显示边框 hide:隐藏边框 */ce...
分类:
Web程序 时间:
2015-08-03 20:50:33
阅读次数:
110
Implement Stack using Queues
Implement the following operations of a stack using queues.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- ...
分类:
其他好文 时间:
2015-08-03 19:13:06
阅读次数:
150
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
编程语言 时间:
2015-08-03 18:48:01
阅读次数:
105
动画(Animation),是CSS3的亮点.//之一通过animation属性指定@keyframe来完成关键帧动画;@keyframe用法: @keyframes name { 0% { top: 0; }/*0%可用from关键字替代*/ 50% { top: 10px; } 100%...
分类:
Web程序 时间:
2015-08-03 18:36:05
阅读次数:
146
一、背景与前景1.背景:2.前景字体:(二)边界和边框border(表格边框、样式等)、margin(表外间距)。padding(内容与单元格间距)。margin(外边距)对自身不会有变化,padding(内边距) 本身放大,对别的没用(三)列表与方块width、height、(top、bottom...
分类:
Web程序 时间:
2015-08-03 18:34:01
阅读次数:
120
如http://www.gm.com/css样式如下 1 body{ margin:0; padding:0;} 2 #con{ 3 position:absolute; 4 top:0; 5 left:0; 6 height:100%; 7 width:100%; 8 backgro...
分类:
Web程序 时间:
2015-08-03 18:21:48
阅读次数:
156
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.N...
分类:
其他好文 时间:
2015-08-03 16:41:11
阅读次数:
82
方法1:适用于 SQL Server 2000/2005SELECT TOP 页大小 *FROM table1WHERE id NOT IN ( SELECT TOP 页大小*(页数-1) id FROM table1 ORDER BY id )...
分类:
数据库 时间:
2015-08-03 12:54:47
阅读次数:
136
如果直接用ps命令,会显示所有进程的状态,通常结合grep命令查看某进程的状态。如果想对进程时间监控,应该用 top 工具。下面主要介绍下ps指令。linux进程状态在Linux中,进程存在5中状态运行状态(正在运行或在运行队列中等待)中断状态(休眠中, 受阻, 在等待某个条件的形成或接受到信号)不...
分类:
系统相关 时间:
2015-08-03 10:07:08
阅读次数:
228