1 public class Solution { 2 public int
lengthOfLongestSubstring(String s) { 3 int length = s.length(); 4 if (length ==
0) return ...
分类:
其他好文 时间:
2014-06-13 08:31:32
阅读次数:
214
题目描述Dominos are lots of fun. Children like to stand
the tiles on their side in long lines. When one domino falls, it knocks down the
next one, which k...
分类:
其他好文 时间:
2014-06-13 08:09:51
阅读次数:
318
1.NSNumberold:NSNumber *oldNumber = [NSNumber
numberWithInt:1];new:NSNumber *newNumber = @1;同理:NSNumber *intNumber =
@1;NSNumber *floatNumber = @1.0f;...
分类:
其他好文 时间:
2014-06-13 07:53:21
阅读次数:
246
1,MESSAGE: Input files reads and reference have
incompatible contigs: Relative ordering of overlapping contigs differs, which is
unsafe.##### ERROR re...
分类:
其他好文 时间:
2014-06-13 07:46:21
阅读次数:
1050
String s=new String(); //开辟一个新内存s+="aa"; //开辟第二个内存
存放aa 将之前的s干掉 再开辟一次ss+="bb"; //再次开辟内存 存放bb 将之前的s干掉 在开辟一次sStringBuffer s=new
StringBuffer(); //开辟一个新内...
分类:
其他好文 时间:
2014-06-13 06:48:00
阅读次数:
361
把QString转换为 double类型方法1.QString
str="123.45";double val=str.toDouble(); //val=123.45方法2.很适合科学计数法形式转换bool
ok;double d;d=QString("1234.56e-02").toDouble...
分类:
其他好文 时间:
2014-06-13 06:43:40
阅读次数:
199
原题地址:https://oj.leetcode.com/problems/count-and-say/题意:The
count-and-say sequence is the sequence of integers beginning as follows:1, 11,
21, 1211, 11...
分类:
编程语言 时间:
2014-06-13 06:23:26
阅读次数:
366
刚刚过去的周六(6月7号)是今年高考的第一天,同时也是GPCT杯大学生程序设计大赛颁奖的日子,下面我们用图文再回顾一下本次大赛颁奖的过程.从获奖结果统计看,在大学生群体中C++、Java、C#、Python分别以38%、32%、12%排列前3,而传统大学编程语言大户C语言占比仅为6%,也说明面向对象...
分类:
其他好文 时间:
2014-06-13 00:55:53
阅读次数:
244
方法一: 也是广为人知的一种: YourDataTable.Columns.Remove("列名");
但是这种情况只适合于去掉很少列的情况。 如果有很多列我却只要一两列呢,那就得用方法二了。方法二: DataTable dat =
YourDataTable.DefaultView.ToTabl....
分类:
其他好文 时间:
2014-06-13 00:27:26
阅读次数:
326