码迷,mamicode.com
首页 >  
搜索关键字:whether    ( 1481个结果
[LeetCode] Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.因为都额外空间有限制所以不能把他先转成字符串然后用两个指针扫了。负数不算回文数是因为前面多了个负号么=_= 这样的话我只能想到一个办法,就是反转一个数字...
分类:其他好文   时间:2014-11-23 11:38:33    阅读次数:176
HDU 5108Alexandra and Prime Numbers(大素数)
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
Interleaving String
# 题目 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
关于Havel算法判断度数序列能否构成简单图的思考
问题描述: 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
Install eclipse ns3 in ubuntu 14.04
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
Symmetric Tree 深度优先搜索
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
Kubernetes系统架构简介
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
[leetcode] 10. Symmetric Tree
这次我觉得我的智商太低,想了很久才写出来。题目是让求镜像二叉树判断,题目如下: 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
Chapter 4 : Control Structures 1 : Selection
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
C# - object类有哪些基本方法
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...
分类:Windows程序   时间:2014-11-17 10:45:05    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!