码迷,mamicode.com
首页 >  
搜索关键字:head    ( 28286个结果
zoj2770差分约束
#include#include#include#include#include#include#include#include#include#include#include#include using namespace std;const int maxn=1111;int head[maxn...
分类:其他好文   时间:2014-07-19 19:39:41    阅读次数:341
如何给网站页面添加图标?
问题:如何给网站页面添加图标?解决办法:只要在head内添加这一句即可。
分类:Web程序   时间:2014-07-19 00:23:52    阅读次数:201
链表(二)——单向链表的基本操作(创建、删除、打印、结点个数统计)
1.指针的联动 通过两个指针分别指向前驱和后继结点,并在单向链表上进行移动,当指针指向待处理的结点时,该结点的前驱也有指针指向。 2.设有一个无序单向链表,且数据域的值均不相同,使指针pmin指向最小值结点,并使指针prem指向最小值结点的前驱结点: 代码片段: for(p = head; p; q = p, p = p->next) {     if(pmin->data > p->...
分类:其他好文   时间:2014-07-18 21:26:41    阅读次数:231
MATA是什么
是head区的一个辅助标签names常用的选项有keywords(关键字)description(网站内容描述)auther(作者)robots(机器人向导)http-equiv可代替name项,常用的选项有Expires(期限) Pragma(cache模式) Refresh(刷新)Set-Coo...
分类:其他好文   时间:2014-07-18 19:31:09    阅读次数:209
LeetCode Remove Nth Node From End of List
class Solution {public: ListNode *removeNthFromEnd(ListNode *head, int n) { if (head == NULL) return NULL; ListNode* pre = NULL; ...
分类:其他好文   时间:2014-07-18 18:24:55    阅读次数:209
Prototype与jQuery冲突|兼容性问题解决方法
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title>prototype与jQuery冲突解决4<..
分类:Web程序   时间:2014-07-18 17:06:14    阅读次数:224
jQuery实现购物车物品数量的加减
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><ti..
分类:Web程序   时间:2014-07-18 16:32:38    阅读次数:241
LeetCode "Remove Duplicates from Sorted List"
The key of this problem is about details especially boundary conditions.class Solution {public: ListNode *deleteDuplicates(ListNode *head) { ...
分类:其他好文   时间:2014-07-18 14:36:54    阅读次数:189
Linux Shell sort 指定排序第几列
ip.txt 里存储着ip信息 统计排序后取前10条awk '{cnt[$1]++} END{for (ip in cnt) print ip":"cnt[ip]}' ip.txt | sort -k 2 -rn -t":" | head -n 10awk '{cnt[$1]++} END{for ...
分类:系统相关   时间:2014-07-17 13:32:35    阅读次数:12747
【leetcode】Reorder List (python)
问题的思路是这样: 循环取头部合并,其实也可以换个角度来看,就是将后面的链表结点,一次隔空插入到第一部分的链表中。 class Solution: # @param head, a ListNode # @return nothing def reorderList(self, head): if None == head or None == ...
分类:编程语言   时间:2014-07-16 17:23:30    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!