码迷,mamicode.com
首页 >  
搜索关键字:palindrome linked li    ( 14538个结果
【LeetCode】Linked List Cycle II
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?首先不...
分类:其他好文   时间:2014-05-09 10:42:09    阅读次数:329
ubuntu安装笔记
1.安装基于ubuntu12.04LTS版本的麒麟版本,曾尝试9.10但是源迟迟弄不好,费劲无比,还是算了,用12.04LTS版本好了。2.安装系统之后设置root密码:sudo passwd root3.更改源cp /etc/apt/sources.list /etc/apt/sources.li...
分类:其他好文   时间:2014-05-09 09:43:24    阅读次数:329
Leetcode Insertion Sort List
Sort a linked list using insertion sort. 链表的插入排序,其实有2种特殊情况: 1、插入的值插入到已排序的末尾。 2、插入的值插入到已排序的最前端。 主要设置了3个指针。 1、pStart是已排序链表的开始位置。 2、pInsert是待插入的位置。 3、pEn...
分类:其他好文   时间:2014-05-09 05:16:22    阅读次数:327
NPOI 2.0 创建Excel文件
如果只是简单的处理的话,只需要引用下载压缩包里的NPOI.dll (office 2003)或NPOI.OOXML.dll(office 2007) 文件而已。 1 using System; 2 using System.Collections.Generic; 3 using System.Li...
分类:其他好文   时间:2014-05-09 04:29:08    阅读次数:324
<li>圆点样式在chomme浏览器中和其他浏览器区别
今天用chomme测试时候发现,我的标签的圆点跑到右边去了。我的标签中有标签。综合分析了一下:除chomme之外,所有浏览器标签的圆点都绝对定位在标签之外,而chomme的圆点是在标签里面 (说明:属于标签内容的一部分)当我标签的标签给了float:left之后,圆点就被挤到右边去了。解决办法:中的...
分类:其他好文   时间:2014-05-09 03:02:05    阅读次数:243
leetcode -day11 Clone Graph & Palindrome Partitioning I II
1、Clone Graph Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as...
分类:其他好文   时间:2014-05-09 02:17:58    阅读次数:336
JS(原生)事件委托:为动态创建的节点绑定事件
项目开发中经常需要为动态创建的节点绑定事件,比如需要创建一个动态列表:在li的数量非常少的时候,为每一个li绑定事件不会存在太多性能方面的问题,但是当列表非常的长,长到上百上千甚至上万的时候(假设),为每个li绑定事件就会对页面性能产生很大的影响。当有大量元素需要绑定相同事件的时候可采用事件委托,将...
分类:Web程序   时间:2014-05-08 22:32:52    阅读次数:560
LeetCode -- Remove Duplicates from Sorted List
题目链接简单题,就是从单链表中删除重复元素。附上代码: 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * L...
分类:其他好文   时间:2014-05-08 18:02:52    阅读次数:338
javascript焦点图(暂时不能自动切换)
window.onload=function() {             var img=document.getElementById("img").children;             var lis=document.getElementById('ul').getElementsByTagName("li"); //这里是获取需要执行动态效果的demo           ...
分类:编程语言   时间:2014-05-08 16:06:15    阅读次数:386
css 模板
css RESET@CHARSET "gbk"; /*设置编码*/body,h1,h2,h3,h4,h5,h6,hr,p,blockquote, /** 结构元素 **/dl,dt,dd,ul,ol,li, /** 列表元素 **/pre, /** 文本格式元素 **/form,fields...
分类:Web程序   时间:2014-05-08 11:34:15    阅读次数:455
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!