Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:
其他好文 时间:
2014-06-28 23:59:00
阅读次数:
383
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.此题是求直线上点最多的点数,根据两点构成一条直线,在同一条直线上,任意两点之间的斜率都相同,故需要对每个点...
分类:
其他好文 时间:
2014-06-28 20:59:44
阅读次数:
132
Longest Palindromic Substring:Given a stringS, find the longest palindromic substring inS.You may assume that the maximum length ofSis 1000, and there...
分类:
其他好文 时间:
2014-06-21 07:36:18
阅读次数:
227
1.页面传值: this.NavigationService.Navigate(new Uri("/SecondPage.xaml?CustomerId=1234&Product=555", UriKind.Relative)); protected override void OnNavigate...
分类:
其他好文 时间:
2014-06-21 06:30:22
阅读次数:
142
Request.Url.PathAndQuery public RedirectResult AddToCart(Cart cart, int productId, string returnUrl) { Product product = this...
分类:
Web程序 时间:
2014-06-21 00:56:57
阅读次数:
265
一、刚装上hive在执行hive启动的过程中出现[hadoop@localhost hive-0.6.0]$ hiveInvalid maximum heap size: -Xmx4096mThe specified size exceeds the maximum representable si...
分类:
其他好文 时间:
2014-06-20 22:17:04
阅读次数:
278
1、 在/etc/oratab中作如下修改$ORACLE_SID:$ORACLE_HOME:Y例如vi /etc/orataborcl:/u01/app/oracle/product/10.2.0/db_1:Y2、 修改/etc/rc.localsu - oracle -c "$ORACLE_HOM...
分类:
数据库 时间:
2014-06-20 21:15:54
阅读次数:
242
对京东某一商品信息页面的HTML代码进行分析,可以发现它的图书产品信息页面都含有这样一段代码(不同类的商品页面有些不同):
window.pageConfig={compatible:true,searchType: 1,product:{"skuid":"11408255","name":"\u4f17\u795e\u7684\u536b\u661f\uff1a\u4e2d\u56fd\u79...
分类:
编程语言 时间:
2014-06-18 11:20:32
阅读次数:
275
在学习《构建具有CRUD功能的ASP.NET Web API》一文中,通过产品ID获得产品信息的方法如下:1 public Product GetProduct(int id)2 {3 Product item = repository.Get(id);4 if (item ==...
分类:
其他好文 时间:
2014-06-18 10:57:07
阅读次数:
260
JSON.NET(http://json.codeplex.com/)使用来将.NET中的对象转换为JSON字符串(序列化?),或者将JSON字符串转换为.NET中已有类型的对象(反序列化?)首先为了例子随便定义一个类型:public class Product{ public string ...
分类:
Web程序 时间:
2014-06-18 09:10:55
阅读次数:
184