题目:两个链表存储数字,然后求和,和值存储在一个链表中。代码: 1 public ListNode
addTwoNumbers(ListNode l1, ListNode l2) { 2 ListNode head = new ListNode(0); 3
ListN...
分类:
其他好文 时间:
2014-06-29 15:15:57
阅读次数:
240
Given a linked list, swap every two adjacent
nodes and return its head. For example, Given 1->2->3->4, you should
return the list as 2->1->4->3. Your ...
分类:
其他好文 时间:
2014-06-29 14:39:10
阅读次数:
268
class Solution {public: ListNode
*addTwoNumbers(ListNode *l1, ListNode *l2) { ListNode* p = l1; ListNode* q = l2;
ListNode* re...
分类:
其他好文 时间:
2014-06-07 03:50:49
阅读次数:
218
Bonding:Ethernet Channel Bonding enables two or
more Network Interfaces Card (NIC) to a single virtual NIC card which may
increase the bandwidth and p...
分类:
Web程序 时间:
2014-06-07 03:38:59
阅读次数:
267
【转】:http://www.cnblogs.com/lazycoding/archive/2011/04/04/two_include.html<%@
include file=”relativeURI”%><jsp:include page=”relativeURI” flush=”true” ...
分类:
Web程序 时间:
2014-05-29 01:50:53
阅读次数:
242
题目链接说来算是个基础题目,可是还是各种CE,各种WA,基础还是不扎实。附上代码: 1 /** 2 *
Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 *
ListNode *ne...
分类:
其他好文 时间:
2014-05-28 23:56:38
阅读次数:
382
Given an array of integers, find two numbers such
that they add up to a specific target number.The function twoSum should return
indices of the two nu...
分类:
其他好文 时间:
2014-05-26 19:50:39
阅读次数:
314
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 i...
分类:
其他好文 时间:
2014-05-25 21:36:52
阅读次数:
268
引言数学计算的模拟类题目,往往是要求实现某种计算(比如两数相除),实现的过程中会有所限定,比如不允许乘法等等。这类题目首先要注意计算过程中本身的特殊情况。比如求相除,则必须首先反映过来除数不能为0。其次要记得考虑负数的情况,如果计算范围不单单是整数,还要考虑double的比较方式。最后要注意越界情况...
分类:
其他好文 时间:
2014-05-25 19:10:39
阅读次数:
287
1.JS include :DOM BOM ECMA2.Browser 分别独立实现dom &
JSas if two isolated islands3.JS操作DOMfrom the island to the other one4.DOM性能The
bridges between island...
分类:
其他好文 时间:
2014-05-25 11:28:12
阅读次数:
246