码迷,mamicode.com
首页 >  
搜索关键字:nodes    ( 4030个结果
LeetCode: Maximum Depth of Binary Tree
LeetCode: Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from...
分类:其他好文   时间:2014-08-27 21:54:58    阅读次数:234
[LeetCode] Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then le...
分类:其他好文   时间:2014-08-27 00:20:16    阅读次数:232
leetcode - Partition List
题目:Partition ListGiven a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should p...
分类:其他好文   时间:2014-08-26 13:08:16    阅读次数:401
关于easyui Tree取得选中节点的父级节点(得到选取实心圆点的id)
官方的jquery.easyui.min.js已经实现了对实心圆点框id的获取,我们看官方如下代码: 如果我们让"_c0"的值变成“indeterminate”那么我们就能够得到想要的结果了,具体实现看如下代码:、 var nodes = $('#tt').t...
分类:其他好文   时间:2014-08-26 11:43:55    阅读次数:2504
[leecode]Clone Graph
Clone GraphClone an undirected graph. Each node in the graph contains alabeland a list of itsneighbors.OJ's undirected graph serialization:Nodes are l...
分类:其他好文   时间:2014-08-25 22:22:44    阅读次数:237
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.思路: 1 cla...
分类:其他好文   时间:2014-08-25 18:38:04    阅读次数:211
LeetCode Recover Binary Search Tree
class Solution {private: vector nodes;public: void recoverTree(TreeNode *root) { nodes.clear(); dfs(root); // 1 5 3 4 2 6 7...
分类:其他好文   时间:2014-08-25 01:07:23    阅读次数:329
POJ 3237 Tree
TreeTime Limit: 5000MSMemory Limit: 131072KTotal Submissions: 3836Accepted: 1088DescriptionYou are given a tree with N nodes. The tree’s nodes are num...
分类:其他好文   时间:2014-08-25 01:06:53    阅读次数:313
[POJ 1308]Is It A Tree?(并查集判断图是否为一棵有根树)
Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the following proper...
分类:其他好文   时间:2014-08-23 17:46:41    阅读次数:218
Remove Duplicates from Sorted List II
Remove Duplicates from Sorted List II  Total Accepted: 17137 Total Submissions: 69046My Submissions Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only d...
分类:其他好文   时间:2014-08-23 14:00:40    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!