Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-02-03 16:46:32
阅读次数:
112
原文:C#中使用反射获取结构体实例一般用反射获取类对象的实例比较简单,只要类有一个无参构造函数或没有显示声明带参的构造函数即可使用如下代码 static void Main(string[] args) { Type type = typeof(MyObject); object obj = typ...
springmvc的controller可以进行对象的数据绑定。如下的代码可以直接将form传过来的id和name映射到参数里。//映射到id 和 name上@RequestMapping("hello")public void hello (String id,String name) { ......
分类:
编程语言 时间:
2015-02-03 16:43:13
阅读次数:
623
Word文件转html,返回相对路径 1 private string GetPathByDocToHTML(string strFile) 2 { 3 if (string.IsNullOrEmpty(strFile)) 4 { 5 ...
public static void copyFailFile(String bugID) throws Exception { File file = new File("."); //get XML file path String xmlFil...
分类:
其他好文 时间:
2015-02-03 16:35:02
阅读次数:
131
Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large ...
分类:
其他好文 时间:
2015-02-03 16:31:41
阅读次数:
125
首先我们回顾一下C、OC中字符串相关知识:C语言中,通常说字符串为一个普通的字符数组,如:charcharacters[12]="helloworld";而C语言中引用字符串通常和指针扯上关系,写法如:char*s="helloworld";这两种写法上,存在一个明显的区别在于characters中的字符存在于栈区,而s指..
分类:
编程语言 时间:
2015-02-03 15:20:16
阅读次数:
278
functiongetjsontoWhereSql(constajsonarray:TJSONArray):string;vari:Integer;ajsonobject:TJSONObject;afieldname,afieldvalue:string;sqlwherestring:string;afieldoperator:string;beginsqlwherestring:=‘‘;fori:=0toajsonarray.Size-1dobeginajsonobject:=ajsonarray.Get(..
分类:
数据库 时间:
2015-02-03 15:16:38
阅读次数:
345
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
["aa","...
分类:
其他好文 时间:
2015-02-03 15:09:45
阅读次数:
96
/// /// 修改XML /// /// test public static void ChangeXml(string test) { string xmlPath = "config";//当前文件夹下的config XmlDocument xmlDoc = new XmlDocumen.....