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
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
题目: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
官方的jquery.easyui.min.js已经实现了对实心圆点框id的获取,我们看官方如下代码:
如果我们让"_c0"的值变成“indeterminate”那么我们就能够得到想要的结果了,具体实现看如下代码:、
var nodes = $('#tt').t...
分类:
其他好文 时间:
2014-08-26 11:43:55
阅读次数:
2504
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 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
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
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
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
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