leetcode -Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn...
分类:
其他好文 时间:
2015-08-01 00:52:37
阅读次数:
118
测试代码着色package com.example.news;import java.util.List;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import...
分类:
其他好文 时间:
2015-08-01 00:51:08
阅读次数:
98
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of the nodes in each of...
分类:
其他好文 时间:
2015-07-31 23:34:56
阅读次数:
116
forms 接口定义using System;using System.Collections.Generic;using System.IO;namespace PocketDoctor{ public interface IUtilPicture { List Resi...
分类:
移动开发 时间:
2015-07-31 23:30:39
阅读次数:
146
1, vim /etc/apt/source.list,把下面内容源内容copy到source.list中
2, apt-get update
deb http://ftp.neu.edu.cn/mirrors/ubuntu/ vivid main multiverse restricted universe
deb http://ftp.neu.edu.cn/mir...
分类:
系统相关 时间:
2015-07-31 22:03:17
阅读次数:
171
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ...
分类:
其他好文 时间:
2015-07-31 20:15:22
阅读次数:
116
创建包名: 1 CREATE OR REPLACE PACKAGE BODY PKG_UTILITY AS 2 3 --字符串转换到索引表 4 PROCEDURE STR_TO_LIST(PI_STR IN VARCHAR2, --字符串 5 ...
分类:
其他好文 时间:
2015-07-31 20:04:05
阅读次数:
170
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?思想:转置后半段链表节点,然后比较前半段和后半段节点的值是否相等。代码如...
分类:
其他好文 时间:
2015-07-31 19:54:03
阅读次数:
109
1、类集就是一个动态对象数组,还不需要用户自己编写链表,简单多多。2、集合核心操作: (1) 单值保存:Collection (包含两个重要的方法:public void add() 、public Iterator iterator() ) : 允许重复:List子接口(public E ...
分类:
编程语言 时间:
2015-07-31 19:53:00
阅读次数:
133
redis在windows下安装和PHP中使用windows下安装redis1、redis简介redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有...