Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:
其他好文 时间:
2015-01-20 17:31:13
阅读次数:
136
eg: a1 → a2 ↘ c1 → c2 → c3 或者直接a1 → b1 ↗ b1 → b2 → b3求公共链表c1.常规的指针分裂法,复制法,偏移法。 1 public class ...
分类:
编程语言 时间:
2015-01-19 19:00:26
阅读次数:
126
https://oj.leetcode.com/problems/add-two-numbers/You are given two linked lists representing two non-negative numbers. The digits are stored in revers...
分类:
其他好文 时间:
2015-01-18 21:08:18
阅读次数:
243
题目:
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 ...
分类:
编程语言 时间:
2015-01-18 18:38:24
阅读次数:
275
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.对于这道题,之前并不知道java中有一个封装好的数据结构--优先队列。优先队列其实相当于一个最大或最小堆,能...
分类:
其他好文 时间:
2015-01-18 18:24:56
阅读次数:
210
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 ...
分类:
其他好文 时间:
2015-01-17 22:12:46
阅读次数:
168
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a1 → a...
分类:
其他好文 时间:
2015-01-16 22:13:30
阅读次数:
222
题目: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 sing...
分类:
编程语言 时间:
2015-01-16 14:37:18
阅读次数:
247
Write a program to find the node at which the intersection of two singly linked lists begins.
For example, the following two linked lists:
A: a1 → a2
↘
...
分类:
其他好文 时间:
2015-01-16 11:18:52
阅读次数:
110
题目: 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 ...
分类:
其他好文 时间:
2015-01-15 20:01:05
阅读次数:
148