Determine whether an integer is a palindrome. Do this without extra space.因为都额外空间有限制所以不能把他先转成字符串然后用两个指针扫了。负数不算回文数是因为前面多了个负号么=_= 这样的话我只能想到一个办法,就是反转一个数字...
分类:
其他好文 时间:
2014-11-23 11:38:33
阅读次数:
176
Problem Description
Alexandra has a little brother. He is new to programming. One day he is solving the following problem: Given an positive integer N, judge whether N is prime.
The problem above is...
分类:
其他好文 时间:
2014-11-23 09:26:35
阅读次数:
240
# 题目 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3 = "aadbbbaccc", ret...
分类:
其他好文 时间:
2014-11-22 23:23:11
阅读次数:
404
问题描述:
Given a list of n natural numbers d1, d2,...,dn,
show how to decide in polynomial time whether there exists an undirected graph G = (V, E) whose node degrees are precisely the numbers d1,d2,·...
分类:
编程语言 时间:
2014-11-21 23:18:11
阅读次数:
523
1. NS3 install 参考NS3 tutorial即可。 2.eclipse 2.1下载 下载地址:http://www.eclipse.org/downloads/ Eclipse IDE for C/C++ Developers NOTE: you can know whether yo...
分类:
系统相关 时间:
2014-11-21 17:53:00
阅读次数:
317
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-11-19 20:16:39
阅读次数:
190
1. 前言Together we will ensure that Kubernetes is a strong and open container management framework for any application and in any environment, whether i...
分类:
Web程序 时间:
2014-11-18 23:16:50
阅读次数:
289
这次我觉得我的智商太低,想了很久才写出来。题目是让求镜像二叉树判断,题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, th...
分类:
其他好文 时间:
2014-11-18 13:15:28
阅读次数:
181
Although it need not be, the expression is usually an identifier. Whether it is an identifieror an expression, the value of the identifier or the expr...
分类:
其他好文 时间:
2014-11-17 13:54:04
阅读次数:
223
Name
Description
Equals(Object)
Determines whether the specified object is equal to the current object.
Equals(Object, Object)
Determines whether the specified object instances are co...