码迷,mamicode.com
首页 >  
搜索关键字:nodes    ( 4030个结果
Reorder List leetcode java
题目:Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.F....
分类:编程语言   时间:2014-07-26 09:51:47    阅读次数:215
【LeetCode】【Python】Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 比较简单,就是转化成中序遍历即可,访问顺序是中序遍历左子树,根节点,中序遍历右子树 Python编程的时候需要注意,要在返回单一数字的时候加...
分类:编程语言   时间:2014-07-25 11:07:51    阅读次数:221
Add Two Numbers leetcode java
题目: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 sin....
分类:编程语言   时间:2014-07-24 10:01:23    阅读次数:223
[leetcode]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...
分类:其他好文   时间:2014-07-23 16:51:51    阅读次数:251
【 D3.js 入门系列 --- 9.2 】 力学图的制作
本节介绍在 D3 中如何制作力学图,我们用 Layout 将普通数据转换成作图需要的数据。...
分类:Web程序   时间:2014-07-23 13:03:16    阅读次数:309
Partition List leetcode java
题目:Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve t....
分类:编程语言   时间:2014-07-23 12:27:46    阅读次数:290
【leetcode刷题笔记】Remove Duplicates from Sorted List II
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given1->2->3-...
分类:其他好文   时间:2014-07-23 12:20:16    阅读次数:205
Remove Duplicates from Sorted List II leetcode java
题目:Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1....
分类:编程语言   时间:2014-07-23 12:01:46    阅读次数:312
Merge Two Sorted Lists leetcode java
题目: 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. 题解:....
分类:编程语言   时间:2014-07-23 12:01:36    阅读次数:257
Swap Nodes in Pairs leetcode java
题目: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.http....
分类:编程语言   时间:2014-07-23 12:01:06    阅读次数:330
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!