码迷,mamicode.com
首页 >  
搜索关键字:nodes    ( 4030个结果
【LeetCode】Binary Tree Preorder Traversal (2 solutions)
Binary Tree Preorder TraversalGiven a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:其他好文   时间:2014-11-14 17:34:30    阅读次数:151
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 first two lists.C++代码如下:#...
分类:其他好文   时间:2014-11-14 17:13:09    阅读次数:193
LeetCode Solutions : Swap Nodes in Pairs
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 algorithm should use only constant space. Y...
分类:其他好文   时间:2014-11-14 14:22:50    阅读次数:164
leetcode Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor...
分类:其他好文   时间:2014-11-14 08:08:24    阅读次数:197
leetcode--Partition List
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 the original relative order of the nodes in each of...
分类:其他好文   时间:2014-11-13 14:45:51    阅读次数:172
Leetcode--Reverse Nodes in k-Group
Problem Description:Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a mul...
分类:其他好文   时间:2014-11-12 22:33:46    阅读次数:201
Reorder List (12)
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.For e...
分类:其他好文   时间:2014-11-12 19:42:37    阅读次数:186
LeeCode---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 as a link...
分类:其他好文   时间:2014-11-11 22:56:05    阅读次数:218
LimeJS指南2
# Layout和nodes## 调整大小和方位变化在LimeJs中,支持不同的屏幕大小和视口大小的变化很容易,都是自动调好的。在Director的构造中(或在*setSize*方法中),但是这不需要与实际的屏幕大小相适应。你的游戏的实际大小是从你游戏所在的容器DOM元素中得到的。如果容器对象的大小...
分类:Web程序   时间:2014-11-10 19:49:02    阅读次数:241
leetcode-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 first two lists. 递归版 /** * Definition for singly-linked list. ...
分类:其他好文   时间:2014-11-10 13:55:03    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!