码迷,mamicode.com
首页 >  
搜索关键字:swap nodes in pairs    ( 8848个结果
Leetcode: Binary Tree Level Order Transversal II
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:其他好文   时间:2014-09-15 14:13:38    阅读次数:153
Leetcode: Binary Tree Level Order Transversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,...
分类:其他好文   时间:2014-09-15 14:07:38    阅读次数:175
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 ...
分类:其他好文   时间:2014-09-15 12:41:48    阅读次数:133
Leetcode: Binary Tree Inorder Transversal
Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3,2]....
分类:其他好文   时间:2014-09-15 09:54:08    阅读次数:135
[leetcode]Swap Nodes in Pairs @ Python
原题地址:http://oj.leetcode.com/problems/swap-nodes-in-pairs/Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2...
分类:编程语言   时间:2014-09-15 06:38:18    阅读次数:200
[Leetcode][JAVA] Merge Two Sorted Lists & Sort List
Merge Two Sorted Lists: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 fi...
分类:编程语言   时间:2014-09-15 01:02:17    阅读次数:269
Ubuntu 12.04 分区方案(仅供参考)
总空间大小:50G目录建议大小实际大小格式描述/10G~20G10Gext4根目录swap<2048M1Gswap交换空间/boot200M左右100Mext4Linux的内核及引导系统程序所需要的文件,比如 vmlinuz initrd.img文件都位于这个目录中。在一般情况下,GRUB或LILO...
分类:其他好文   时间:2014-09-14 17:52:07    阅读次数:182
二叉树 - 最大左高树
MaxHBLT.h #include template inline void Swap(T& a, T& b) { T c = a; a = b; b = c; } template class MaxHBLT; template class TNode { friend MaxHBLT; public: TNode(const T& val) { data =...
分类:其他好文   时间:2014-09-13 21:32:36    阅读次数:239
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-09-13 20:08:35    阅读次数:179
Binary Tree Postorder Traversal
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:其他好文   时间:2014-09-13 20:07:55    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!