https://oj.leetcode.com/problems/rotate-list/Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->...
分类:
其他好文 时间:
2015-02-09 17:39:44
阅读次数:
112
Error: /home/y/my_note/nodejs/myapp/views/index.jade:20 18| -list=[{name:'zhangsan',age:25,email:'zhangsan@123.com'}] 19| -e...
分类:
系统相关 时间:
2015-02-09 15:50:24
阅读次数:
1284
Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, retu...
分类:
其他好文 时间:
2015-02-09 15:44:36
阅读次数:
139
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:
其他好文 时间:
2015-02-09 15:44:08
阅读次数:
112
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:
其他好文 时间:
2015-02-09 15:31:55
阅读次数:
161
定义参数个数不确定的函数,需用到头文件stdarg.h,该头文件是专门为变长参数函数所用。
参数变长函数的声明:void function(int intVal, ...),当然参数类型可以为double或其他,返回类型也可以自己修改。
方法:
先用头文件stdarg.h中的宏va_list定义一个指向参数的指针ap,va_list ap;
再用宏va_start初始化指针ap,va_st...
分类:
其他好文 时间:
2015-02-09 14:11:38
阅读次数:
165
今天项目要求在公司小机房里面跑了。小机房里装的office2013 顿时我从excel中提取图片的代码就用不了了
找了一上午资料终于在stackoverflow上找到办法
贴代码:
public void ReadPic(string path,List noDataList)
{
try
{
...
分类:
其他好文 时间:
2015-02-09 14:10:12
阅读次数:
118
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2015-02-09 14:03:34
阅读次数:
132
在Ubuntu系统下,使用sudo apt-get update有时会出现“W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/.... 校验和不符”,解决方法如下:sudo gedit /etc/apt/sources.list,然后将 文件中http://cn.archive.ubuntu.com/ubuntu/替换为http://mirrors.163.c...
分类:
Web程序 时间:
2015-02-09 12:57:40
阅读次数:
153
public static void main(String[] args) { List list = new ArrayList(); List list1 = new ArrayList(); int[] a = {1,...
分类:
编程语言 时间:
2015-02-09 10:52:29
阅读次数:
223