码迷,mamicode.com
首页 >  
搜索关键字:lists    ( 2473个结果
Add Two Numbers
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
Intersection of Two Linked Lists(java)
eg: a1 → a2 ↘ c1 → c2 → c3 或者直接a1 → b1 ↗ b1 → b2 → b3求公共链表c1.常规的指针分裂法,复制法,偏移法。 1 public class ...
分类:编程语言   时间:2015-01-19 19:00:26    阅读次数:126
Add Two Numbers
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
[C++]LeetCode: 108 Add Two Numbers (反序链表求和)
题目: 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
Leetcode Merge k Sorted Lists
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.对于这道题,之前并不知道java中有一个封装好的数据结构--优先队列。优先队列其实相当于一个最大或最小堆,能...
分类:其他好文   时间:2015-01-18 18:24:56    阅读次数:210
【leetcode】Add Two Numbers(middle) ☆
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
Intersection of Two Linked Lists(LIST-2 POINTER)
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
leetcode 【 Add Two Numbers 】 python 实现
题目: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
LeetCode--Intersection of Two Linked Lists
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
[leetCode][016] Add Two Numbers
题目: 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!