码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
LeetCode题解: Balanced Binary Tree
判定一棵二叉树是不是二叉平衡树。链接:https://oj.leetcode.com/problems/balanced-binary-tree/题目描述:Given a binary tree, determine if it is height-balanced.For this problem...
分类:其他好文   时间:2014-12-11 18:56:57    阅读次数:162
leetcode------Linked List Cycle(3)
标题:Linked List Cycle通过率:36%难度中等Given a linked list, determine if it has a cycle in it.Follow up: Can you solve it without using extra space?拿到题后我以为很简单...
分类:其他好文   时间:2014-12-11 17:09:01    阅读次数:167
ArcEngine 通过IRelationalOperator.Relation判断几何体相交
IRelationalOperator 接口:1. Provides access to members that determine if a certain spatial relationship exists between two geometries. MembersDescripti....
分类:其他好文   时间:2014-12-10 14:07:19    阅读次数:1608
(转)Xen Server删除Local Storage
1. First, you have to determine the Storage-Repository-UUID:xe sr-list-> write down / take note of SR-UUID of the SR to delete2. Find the correspondin...
分类:其他好文   时间:2014-12-10 00:19:07    阅读次数:299
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all vali...
分类:其他好文   时间:2014-12-08 14:03:01    阅读次数:146
[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 i...
分类:其他好文   时间:2014-12-04 23:21:47    阅读次数:461
[leetcode]Palindrome Number
问题描述: Determine whether an integer is a palindrome. Do this without extra space. 基本思路: 考虑到回文的特点,根据给定数字获得与给定数字低位高位反序的数字。如果是回文数,则两数想等;否则不等。(即使反序数字溢出,也可的到正确结果) 代码: bool isPalindrome(int x) { //...
分类:其他好文   时间:2014-12-04 20:04:19    阅读次数:159
[LeetCode]Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a ...
分类:其他好文   时间:2014-12-03 23:34:37    阅读次数:396
leetcode. Linked List Cycle && Linked List Cycle ii
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?使用双指针fast和slow,fast每次走两步,slow每次走一步,如果fast追...
分类:其他好文   时间:2014-12-03 23:04:47    阅读次数:287
Path Sum
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-12-03 21:12:00    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!