码迷,mamicode.com
首页 >  
搜索关键字:its    ( 9997个结果
leetcode 题解:Binary Tree Preorder Traversal (二叉树的先序遍历)
题目:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3]....
分类:其他好文   时间:2014-06-26 16:03:52    阅读次数:296
leetcode 题解:Binary Tree Inorder Traversal (二叉树的中序遍历)
题目:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].N...
分类:其他好文   时间:2014-06-26 16:02:42    阅读次数:172
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]...
分类:其他好文   时间:2014-06-26 15:59:16    阅读次数:207
Leetcode Maximal Rectangle
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.时间复杂度O(n^3),最大全1子矩阵,利用直方图求解,可以参考对...
分类:其他好文   时间:2014-06-26 15:08:46    阅读次数:164
LeetCode: Gas Station [134]
【题目】 There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an ...
分类:其他好文   时间:2014-06-26 13:27:05    阅读次数:231
LeetCode: Clone Graph [133]
【题目】 Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for each node, and , as a separator for node label and each ne...
分类:其他好文   时间:2014-06-26 06:48:16    阅读次数:285
warning:performSelector may cause a leak because its selector is unknown
在ARC项目中使用performSelector:withObject:函数出现“performSelector may cause a leak because its selector is unknown”。在stackoverflow找到了一个解决方案,地址:http://stackover...
分类:其他好文   时间:2014-06-25 13:03:01    阅读次数:270
objects classes and metaclasses in Objective-C
Objective-C is a class-based object system. Each object is an instance of some class; the object'sisapointer points to its class. That class describ.....
分类:其他好文   时间:2014-06-25 11:48:57    阅读次数:162
leetcode--Reverse Nodes in k-Group
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 multiple ofkthen left-o...
分类:其他好文   时间:2014-06-25 11:10:16    阅读次数:163
LeetCode: Longest Consecutive Sequence [128]
【题目】 Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4. Your algorithm should run...
分类:其他好文   时间:2014-06-25 07:55:42    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!