DNA Sorting
Time Limit: 1000MS
 
Memory Limit: 10000K
Total Submissions: 80359
 
Accepted: 32327
Description
One measure of ``unsortedness'' in a sequence is the number of ...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 23:34:18   
                                阅读次数:
303
                             
                         
                    
                        
                            
                            
                                python中的单元测试可以使用doctest,unittest完成
1.doctest的使用
(1)写入程序如下(cubetest.py):
#!/usr/bin/python
def cube(x):
	"""
	cube a number and return the result
	
	>>> cube(2)
	8
	>>> cube(3)
	27
	>>> cube(4)
	64...
                            
                            
                                分类:
编程语言   时间:
2014-05-13 23:33:19   
                                阅读次数:
491
                             
                         
                    
                        
                            
                            
                                create or replace function get_sal1(id 
employees.employee_id%type) return number is sal employees.salary%type;begin sal 
:= 0; select salary into s...
                            
                            
                                分类:
数据库   时间:
2014-05-13 19:41:58   
                                阅读次数:
456
                             
                         
                    
                        
                            
                            
                                一、JS中的数据类型 1.数值型(Number):包括整数、浮点数。 2.布尔型(Boolean) 
3.字符串型(String) 4.对象(Object) 5.数组(Array) 6.空值(Null) 
7.未定义(Undefined)二、判断一个变量的数据类型1.数值型(...
                            
                            
                                分类:
编程语言   时间:
2014-05-13 17:24:30   
                                阅读次数:
360
                             
                         
                    
                        
                            
                            
                                1729 is the natural number following 1728 and preceding 1730. It is also known as the Hardy-Ramanujan number after a famous anecdote of the British mathematician G. H. Hardy regarding
 a hospital vis...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 14:52:34   
                                阅读次数:
314
                             
                         
                    
                        
                            
                            
                                又是那种看上去非常简单,但非常难过的问题,主要是所有的测试用例很难考虑全面。下面我列举出所有的情况:
1. 字符串前面是可以含有空格的,但是全部都是空格是不行的。
2. 一个数字开头可以是哪些字符呢?很容易想到的是“+”和“-”,但是别忘记还有小数点。
3. 一个数字中间也是可以含有字符的,比如科学计数法的“e”,而且e之后是可以接“+”或者“-”的。但是要注意e是不是作为数字的开头或者结尾...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 07:16:48   
                                阅读次数:
232
                             
                         
                    
                        
                            
                            
                                Number one of the biggest security holes are passwords, as every password security study shows. Hydra is a parallized login cracker which supports numerous protocols to attack. New modules are easy to...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 06:11:08   
                                阅读次数:
379
                             
                         
                    
                        
                            
                            
                                本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Palindrome Number
 Total Accepted: 12165 Total
 Submissions: 41736
Determine whether an integer is a palindrome. Do this wit...
                            
                            
                                分类:
其他好文   时间:
2014-05-13 05:28:07   
                                阅读次数:
253
                             
                         
                    
                        
                            
                            
                                XceedEditorsforWPF是一款包含12种功能强大的WPF编辑控件,用户输入控件,每个控件都具有多种风格主题,包含:日期选择控件、复选框、改进的TextBox、数字输入框、值范围输入框等。具体功能:DatePicker/Calendar:日期选择控件MaskedTextBox:为输入文本指定一种标记格式CheckB..
                            
                            
                                分类:
其他好文   时间:
2014-05-13 03:15:42   
                                阅读次数:
278
                             
                         
                    
                        
                            
                            
                                原题地址:http://oj.leetcode.com/problems/minimum-depth-of-binary-tree/题意:Given 
a binary tree, find its minimum depth.The minimum depth is the number of no...
                            
                            
                                分类:
编程语言   时间:
2014-05-12 21:55:15   
                                阅读次数:
348