Merge two sorted linked lists and return it as a new list. The new list should be made by splicing
together the nodes of the first two lists.
class Solution {
public:
ListNode *mergeTwoLists(Li...
分类:
其他好文 时间:
2014-10-15 15:48:31
阅读次数:
127
一道非常不错的状态压缩+map映射+背包的DP题目。
题意很简单,就是给N个物品有两个属性 a ,b.问对于A,B的要求是否可以用N件物品组合产生。若满足则输出一种。
这个直观感受就是背包问题啊,但是看下数据规模
The first line contains two integers N (1 N <= 400) and
Q (1 Q
For the next N lines,...
分类:
其他好文 时间:
2014-10-15 11:18:00
阅读次数:
265
Problem Description
A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first...
分类:
其他好文 时间:
2014-10-14 23:41:13
阅读次数:
266
Set集合的配置数据表的创建:表关系一个员工拥有多个身份create table EMPLOYEE ( id INT NOT NULL auto_increment, first_name VARCHAR(20) default NULL, last_name VARCHAR(20) default...
分类:
Web程序 时间:
2014-10-14 22:44:19
阅读次数:
312
以前学习UML的时候,用的是EA。最近在看Head First想着装一下Ration Rose吧,于是就着手开始装。本来网上关于Ration Rose的安装及破解教程很多,但是我在安装的过程却也遇到了很多问题,所以把整个安装及破解的过程整理一下,也给其他安装Rose的朋友们提供一个参考。...
分类:
其他好文 时间:
2014-10-14 14:58:58
阅读次数:
305
在Shell中,调用函数时可以向其传递参数。在函数体内部,通过 $n 的形式来获取参数的值,例如,$1表示第一个参数,$2表示第二个参数...带参数的函数示例:#!/bin/bashfunWithParam(){ echo "The value of the first paramter is...
分类:
系统相关 时间:
2014-10-14 06:11:17
阅读次数:
248
一楼 敬boss~~~~~~~~~~~BT~~~~~~~~~~~~find something interesting!!!奇丑无比的模板 我需要好好收拾一下它了.....~~~~~~~~~~~UI~~~~~~~~~~~~逗比无比的地址 我需要在好好考虑一下它了.......~~~~~~~~~~~Y...
分类:
其他好文 时间:
2014-10-14 03:36:08
阅读次数:
183
以下内容主要摘自[1,2](1)In javascript,functions are first-class objects, which means functions can be used in a first-class manner like objects, since they ar...
分类:
编程语言 时间:
2014-10-14 00:49:27
阅读次数:
290
启动Weblogic时,报,解决方法:I ran into this error the first time I restarted Weblogic on one of my installs, the only reference that I was able to find is the ...
分类:
Web程序 时间:
2014-10-13 22:04:37
阅读次数:
321
对于List的All,Any,Where,FirstOrDefault,Average,Sum,Distinct,Union,AddRange,RemoveRange,InsertRange,GetRange操作
对于List的All,Any,Where,FirstOrDefault,Average,Sum,Distinct,Union,AddRange,RemoveRange,InsertRange,GetRange操作
分类:
其他好文 时间:
2014-10-13 20:19:57
阅读次数:
291