A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the sub...
分类:
其他好文 时间:
2014-08-23 11:22:40
阅读次数:
198
string str1 = "C#操作字符串如下";
string str2 = "C#操作字符串";
//比较字符串 Compare,Equal
//1,compare,int 1
string.Compare(str1, str2);
str1.Com...
分类:
其他好文 时间:
2014-08-22 16:25:59
阅读次数:
119
donet提供了四个判等函数,分别是referenceEqual,静态Equal,具体类型Equal,和==。首先来说,object.referenceEqual和静态Equalpublic static bool ReferenceEqual(obj left,obj right)值得注意的是ob...
分类:
其他好文 时间:
2014-08-22 12:40:26
阅读次数:
167
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:
其他好文 时间:
2014-08-21 20:58:34
阅读次数:
244
Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of...
分类:
其他好文 时间:
2014-08-21 19:23:34
阅读次数:
295
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-08-20 22:28:12
阅读次数:
244
DescriptionThere are N stones, which can be divided into some piles arbitrarily. Let the value of each division be equal to the product of the number ...
分类:
其他好文 时间:
2014-08-20 13:55:32
阅读次数:
245
基本用法seq[选项]...尾数seq[选项]...首数尾数seq[选项]...首数增量尾数以指定增量从首数开始打印数字到尾数。选项:-f,--format=格式使用printf样式的浮点格式-s,--separator=字符串使用指定字符串分隔数字(默认使用:\n)-w,--equal-width在列前添加0使得宽度相同例:1.尽可..
分类:
其他好文 时间:
2014-08-19 11:06:05
阅读次数:
166
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:
其他好文 时间:
2014-08-17 19:49:42
阅读次数:
190
Description
A square is a 4-sided polygon whose sides have equal length and adjacent sides form 90-degree angles. It is also a polygon such that rotating about its centre by 90 degrees gives the sa...
分类:
其他好文 时间:
2014-08-17 15:39:02
阅读次数:
286