码迷,mamicode.com
首页 >  
搜索关键字:palindrome linked li    ( 14538个结果
leetcode - Remove Nth Node From End of List
题目:Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1.....
分类:其他好文   时间:2014-07-01 20:34:50    阅读次数:232
DOM操作应用
创建元素document.createElement("li");添加节点oUl.appendChild(oLi);在某个元素之前插入一个节点oUl.insertBefore(oLi,oUl.firstChild);删除节点aA[i].onclick = function(){ Ul.remove....
分类:其他好文   时间:2014-07-01 13:24:53    阅读次数:243
Linked List Cycle
题目 Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? 方法 /** * Definition for singly-linked list. * class ListNode { ...
分类:其他好文   时间:2014-07-01 11:31:40    阅读次数:178
Linked List Cycle II
题目 Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it without using extra space? 方法 public ListNode de...
分类:其他好文   时间:2014-07-01 11:30:58    阅读次数:200
[Leetcode]Add Two Numbers
题目 You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it a...
分类:其他好文   时间:2014-07-01 09:11:07    阅读次数:206
Reorder List
题目 Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, re...
分类:其他好文   时间:2014-07-01 08:39:24    阅读次数:181
Flatten Binary Tree to Linked List
题目 Given a binary tree, flatten it to a linked list in-place. For example, Given 1 / 2 5 / \ 3 4 6 The flattened tree should look lik...
分类:其他好文   时间:2014-07-01 08:03:10    阅读次数:127
Lua 与C交互 第二篇
使用静态链接的方式 #include #include #include #ifdef __cplusplus extern "C" { #endif #include "lua/include/lua.h" #include "lua/include/lauxlib.h" #include "lua/include/lualib.h" #pragma comment (li...
分类:其他好文   时间:2014-07-01 07:50:09    阅读次数:189
Copy List with Random Pointer
题目 A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list. 方法 publi...
分类:其他好文   时间:2014-07-01 07:49:33    阅读次数:186
vsftp限制FTP用户在特定目录
用户配置目录:/etc/vsftpd/user.d为每个用户建立配置文件比如:#/etc/vsftpd/user.d/Tom编辑Tom文件,加入以下内容local_root=/home/hyq/ftp/tom#Endvi /etc/vsftpd/vsftpd.conf加上以下几行:chroot_li...
分类:其他好文   时间:2014-07-01 00:47:01    阅读次数:278
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!