码迷,mamicode.com
首页 >  
搜索关键字:nodes    ( 4030个结果
[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-08-30 01:11:08    阅读次数:286
【LeetCode】Reorder List
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 example, Given {1,2,3,4}, reorder it to ...
分类:其他好文   时间:2014-08-30 00:06:58    阅读次数:359
Clone Graph
1 Clone Graph题目:Clone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes ...
分类:其他好文   时间:2014-08-29 14:35:48    阅读次数:190
【leetcode】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 cons...
分类:其他好文   时间:2014-08-29 13:13:37    阅读次数:169
Theano学习笔记(三)——图结构
图结构(Graph Structures)是了解Theano内在工作原理的基础。 Theano编程的核心是用符号占位符把数学关系表示出来。   图结构的组成部分 如图实现了这段代码: importtheano.tensor as T x= T.matrix('x') y= T.matrix('y') z= x + y 变量节点(variable nodes) 红色表示...
分类:其他好文   时间:2014-08-29 11:04:07    阅读次数:323
[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.public cl...
分类:其他好文   时间:2014-08-29 01:16:36    阅读次数:267
LeetCode Reorder List
Given a singly linked listL: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 exam...
分类:其他好文   时间:2014-08-28 17:47:15    阅读次数:208
LeetCode 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]. 1...
分类:其他好文   时间:2014-08-28 11:12:49    阅读次数:209
LeetCode: Binary Tree Zigzag Level Order Traversal
LeetCode: Binary Tree Zigzag Level Order TraversalGiven a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to...
分类:其他好文   时间:2014-08-27 23:10:28    阅读次数:316
LeetCode: Binary Tree Level Order Traversal
LeetCode: Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level ...
分类:其他好文   时间:2014-08-27 21:55:48    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!