码迷,mamicode.com
首页 >  
搜索关键字:cat head tail nl    ( 59491个结果
[leetcode]_Add Two Numbers
题目:两个链表存储数字,然后求和,和值存储在一个链表中。代码: 1 public ListNode addTwoNumbers(ListNode l1, ListNode l2) { 2 ListNode head = new ListNode(0); 3 ListN...
分类:其他好文   时间:2014-06-29 15:15:57    阅读次数:240
LeetCode:Swap Nodes in Pairs
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 ...
分类:其他好文   时间:2014-06-29 14:39:10    阅读次数:268
hdu 2768 Cat vs. Dog (二分匹配)
Cat vs. DogTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1422Accepted Submission(s): 534Problem ...
分类:其他好文   时间:2014-05-30 03:30:21    阅读次数:292
linux shell ipaddress
ifconfig |grep "inet addr"|cut -f 2 -d":"|cut -f 1 -d " "|head -n 1ifconfigeth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:192.168.1.100 ....
分类:系统相关   时间:2014-05-29 20:55:58    阅读次数:435
js脚本都可以放在哪些地方
js脚本应该放在页面的什么地方 1.head部分 包含函数的脚本位于文档的 head 部分。这样我们就可以确保在调用函数前,脚本已经载入了。2.body部分 执行位于 body 部分的脚本。3.外部JavaScript 编写外部.js文件,在页面引入,在script标签的src属性中指定外部的js文...
分类:Web程序   时间:2014-05-29 13:00:27    阅读次数:317
<META http-equiv=Content-Type content="text/html; charset=gb2312">
META,网页Html语言里Head区重要标签之一 HTTP-EQUIV类似于HTTP的头部协议,它回应给浏览器一些有用的信息,以帮助正确和精确地显示网页内容。常用的HTTP-EQUIV类型有: 1、Content-Type和Content-Language (显示字符集的设定) 说明:设定页...
分类:Web程序   时间:2014-05-29 09:47:35    阅读次数:272
[Linux监控]磁盘空间大小
echo 192.168.10.69>>ip.list-------------------------------------------#!/bin/bash#注意if和[]之间的空格rm -f ~/fanr/shell/DiskUsageAlert/out.printout=$(cat ~/f...
分类:系统相关   时间:2014-05-28 14:54:26    阅读次数:391
transform
- (IBAction)leftRotate { // 1.取得头像按钮 UIButton *head = (UIButton *)[self.view viewWithTag:10]; // 2.向左旋转45° // 45 180 // 角度是正数:顺时针, 角度是负数:逆时针// ...
分类:其他好文   时间:2014-05-28 13:36:43    阅读次数:237
CentOS装机必备-基本设置以及缺失文件
主要是虚拟机中安装CentOS每次总会做一些设置,记录下来方便以后。纯粹基本设置,比如本地SecureCRT可以连接虚拟机中的CentOS。复杂的非基本设置见:Linux 命令集锦设置网络自动连接#cat /etc/sysconfig/network-scripts/ifcfg-eth0 ONBOO...
分类:其他好文   时间:2014-05-28 11:51:22    阅读次数:337
Wargame narnia level 2 (中文攻略)
前面省略连接部分…… cat narnia2.c #include #include #include int main(int argc, char * argv[]){ char buf[128]; if(argc == 1){ printf("Usage: %s argument\n", ar...
分类:其他好文   时间:2014-05-28 11:49:49    阅读次数:560
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!