判定一棵二叉树是不是二叉平衡树。链接: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
标题: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
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
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
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
问题描述:
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
问题描述:
Determine whether an integer is a palindrome. Do this without extra space.
基本思路:
考虑到回文的特点,根据给定数字获得与给定数字低位高位反序的数字。如果是回文数,则两数想等;否则不等。(即使反序数字溢出,也可的到正确结果)
代码:
bool isPalindrome(int x) { //...
分类:
其他好文 时间:
2014-12-04 20:04:19
阅读次数:
159
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
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
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