转载请注明出处:http://blog.csdn.net/u012860063?viewmode=contents
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4279
HDU集训队选拔赛地点:3教3楼机房,时间:5月10日(周六)12:00开始,请相互转告,谢谢~
百度之星编程大赛——您报名了吗? 
...
                            
                            
                                分类:
其他好文   时间:
2014-05-12 15:05:02   
                                阅读次数:
316
                             
                    
                        
                            
                            
                                本篇只要介绍angular表达式:在之前的例子中,我们多半是直接把数据作为angular标识符的值,但其实可以使用表达式来做更多的事情:比如:{{number}}也可以是:{{number+10}} 
(将数据进行简单的运算)也可以是: {{someFun()/10}} (调用方法得到结果,同时经过简...
                            
                            
                                分类:
其他好文   时间:
2014-05-12 12:50:36   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                Given a string S and a string T, count the 
number of distinct subsequences of T in S.A subsequence of a string is a new 
string which is formed from th...
                            
                            
                                分类:
其他好文   时间:
2014-05-12 09:37:51   
                                阅读次数:
287
                             
                    
                        
                            
                            
                                原文:[转载]js 
isArray小结在日常开发中,我们经常需要判断某个对象是否是数组类型的,在js中检测对象类型的常见的方法有几种: 
1、typeof操作符。对于Function、String、Number、Undefined这几种类型的对象来说,不会有什么问题,但是针对Array的对象就没什么用...
                            
                            
                                分类:
Web程序   时间:
2014-05-12 07:42:50   
                                阅读次数:
468
                             
                    
                        
                            
                            
                                HDU 1394 Minimum Inversion Number (数据结构-线段树)
题目大意:
求逆序数。也就是给你一个序列,每次求逆序数,然再把第一个数放到这个序列的末尾,构成新的序列。问你这n个序列的最小的逆序数。
解题思路:
1、对于每个序列,其原来的逆序数记为 pre , 如果当前把该序列 第一个数 a[0] 移动到尾部,那么新序列的逆序数为 pre-a[i]+(n-a[i]-1)
因为序列中比a[i]大的数有 n-a[i]-1 个,比a[i]小的有 a[i]个。
因此只需求出...
                            
                            
                                分类:
其他好文   时间:
2014-05-12 07:07:01   
                                阅读次数:
301
                             
                    
                        
                            
                            
                                本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Single Number II
 Total Accepted: 14224 Total
 Submissions: 43648
Given an array of integers, every element appears three ti...
                            
                            
                                分类:
其他好文   时间:
2014-05-11 03:54:46   
                                阅读次数:
317
                             
                    
                        
                            
                            
                                Given a stringSand a stringT, count the number 
of distinct subsequences ofTinS.A subsequence of a string is a new string which 
is formed from the orig...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 19:10:58   
                                阅读次数:
389
                             
                    
                        
                            
                            
                                原题地址:http://www.cnblogs.com/x1957/p/3373994.html题意:Given 
an array of integers, every element appearstwiceexcept for one. Find that single 
one.要求:线性时间复...
                            
                            
                                分类:
编程语言   时间:
2014-05-10 05:22:27   
                                阅读次数:
408
                             
                    
                        
                            
                            
                                主程序代码 - 1 #include 2 #include 3 main() 4 { 5 
long t1; 6 int i, n, t, t3; 7 char a[100]; 8 printf("please input a number 
string:\n");...
                            
                            
                                分类:
其他好文   时间:
2014-05-10 03:10:56   
                                阅读次数:
269
                             
                    
                        
                            
                            
                                原题地址:http://oj.leetcode.com/problems/single-number-ii/题意:Given 
an array of integers, every element appearsthreetimes except for one. Find that 
single ...
                            
                            
                                分类:
编程语言   时间:
2014-05-10 03:01:41   
                                阅读次数:
413