码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
[leetcode] path sum @ Python [recursion]
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:编程语言   时间:2014-10-13 03:11:58    阅读次数:257
【LeetCode】Balanced Binary Tree 解题报告
【题目】 Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never d...
分类:其他好文   时间:2014-10-12 22:29:28    阅读次数:210
nyoj 130 相同的雪花 【哈希】
相同的雪花 时间限制:1000 ms  |  内存限制:65535 KB 难度:4 描述You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program w...
分类:其他好文   时间:2014-10-12 20:01:38    阅读次数:277
LeetCode——Balanced Binary Tree(判断是否平衡二叉树)
问题: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the ...
分类:其他好文   时间:2014-10-12 17:56:48    阅读次数:154
leetcode dfs Validate Binary Search Tree
Validate Binary Search Tree  Total Accepted: 23828 Total Submissions: 91943My Submissions Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined...
分类:其他好文   时间:2014-10-12 17:40:38    阅读次数:180
leetcode - Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the...
分类:其他好文   时间:2014-10-12 16:06:48    阅读次数:185
iOS System Services
System Services is a singleton class to gather all available information about a device. Over 75 methods to determine everything from: System uptime, ...
分类:移动开发   时间:2014-10-09 22:17:47    阅读次数:192
[LeetCode]Jump Game
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maximum jump length at that position. Determine i...
分类:其他好文   时间:2014-10-09 16:59:57    阅读次数:203
Balanced Binary Tree
[leetcode]Given a binary tree, determine if it is height-balanced....
分类:其他好文   时间:2014-10-09 16:25:48    阅读次数:132
[Leetcode][JAVA] Linked List Cycle I && II
Linked List CycleGiven a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用快慢指针,如果有循环两指针必定能相遇: 1 p...
分类:编程语言   时间:2014-10-08 04:32:34    阅读次数:298
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!