题目
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "a...
分类:
其他好文 时间:
2014-06-20 13:44:18
阅读次数:
234
MOQ:(Minimum order Quantity)最低订货数量MOQ
即最小订购量(最小订单量)对每个产品设定建议订单量是补货的方法之一。另外要注意订单的有效性,这是由供应商制定的规则。比如说最小订单量、包装数量和方式等等。采购者的建议订单量是在这个基础上制定的。如果订单量比较少不能满足最小订...
分类:
其他好文 时间:
2014-06-06 20:44:03
阅读次数:
303
var o={flag:true}; var test=!!o.flag;//等效于var
test=o.flag||false;
alert(test);由于对null与undefined用!操作符时都会产生true的结果,所以用两个感叹号的作用就在于,如果明确设置了o中flag的值(非
nu.....
分类:
Web程序 时间:
2014-06-06 18:25:28
阅读次数:
257
原题地址:https://oj.leetcode.com/problems/triangle/题意:Given
a triangle, find the minimum path sum from top to bottom. Each step you may move
to adjacent n...
分类:
编程语言 时间:
2014-06-06 17:31:34
阅读次数:
397
求环上的逆序对最小值,这题据说应该是用线段树去做,我先拍了一个裸的,总复杂度O(N2): 1
#include 2 #include 3 using namespace std; 4 5 #define MAXN 5000 6 7 int N; 8
int A[MAXN], sorte...
分类:
其他好文 时间:
2014-06-06 13:13:01
阅读次数:
200
转自:http://liucun.iteye.com/blog/801691" "分配了内存
;null没有调用null的字符串的方法会抛空指针异常。""是一个字符串(String).它在内存中是存在的.它可以使用Object对象中的方法(如"".toString();"".equals())而nu...
分类:
编程语言 时间:
2014-06-06 12:20:27
阅读次数:
243
http://www.nunit.org/index.php?p=download上面地址下载,有安装版的,有直接解压版的,只有里面的nunit.framewor.dll就可以做简单的测试了。安装版的路径默认为:C:\Program
Files \NUnit 2.6\bin\framework\nu...
分类:
其他好文 时间:
2014-06-06 08:15:51
阅读次数:
549
目标使用NuGet添加Prism引用(使用Prism需要引入很多库,手工操作比较麻烦,看到其中介绍了NuGet,于是试了一下)步骤1、打开NuGet命令行(我用的是VS2012)2、VS中出现“命令行”窗口3、在光标处输入Install-Package
Prism(下面来自http://www.nu...
分类:
其他好文 时间:
2014-06-05 21:41:10
阅读次数:
424
原文:Swift中文教程(五)--对象和类 Class 类
在Swift中可以用class关键字后跟类名创建一个类。在类里,一个属性的声明写法同一个常量或变量的声明写法一样,除非这个属性是在类的上下文里面,否则,方法和函数的写法也是这样:1
class Shape {2 var nu...
分类:
其他好文 时间:
2014-06-05 14:57:41
阅读次数:
287
Given an array of integers, find two numbers
such that they add up to a specific target number.The function twoSum should
return indices of the two nu...
分类:
其他好文 时间:
2014-06-05 14:15:07
阅读次数:
221