Total Accepted: 1167
Total Submissions: 3961
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.
For example,Given s = “eceba”,
T is...
分类:
其他好文 时间:
2015-01-28 06:15:59
阅读次数:
149
public static string FullTextSpecialSymbols(string strText) { strText = strText.Trim(); strText = strText.Replace("\"","‘‘"); return strText; } 当然中间可以继续追加需要的过滤。 参考 :http://stac...
分类:
数据库 时间:
2015-01-27 02:00:03
阅读次数:
181
uva 11464 Even Parity
We have a grid of size N x N. Each cell of the grid initially contains a zero(0) or a one(1).
The parity of a cell is the number of 1s surrounding that cell. A cell is su...
分类:
其他好文 时间:
2015-01-26 15:16:03
阅读次数:
125
1.oracle数据库中删除用户有两种命令,一种是 drop user xxx;另外一个种是drop user xxx cascade;
2.官方的说明如下:
Dropping a Database User: Example If user Sidney's schema contains no objects, then you can drop sidney by issuing...
分类:
其他好文 时间:
2015-01-26 13:38:44
阅读次数:
114
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd).关于这个错误,导致的原因可能是一种可能是之前用的Spring版本,和现在用的不同对于Eclipse编译...
分类:
编程语言 时间:
2015-01-26 11:45:11
阅读次数:
157
jQuery中contains和has的区别根据不同的内容和属性可以准确定位到需要找的属性如何根据内容筛选标签?:contains 匹配包含给定的文本元素$("div:contains('Jhon')"):has 匹配含有选择器所匹配的元素的元素$("div:has(p)").addClass("t...
分类:
Web程序 时间:
2015-01-26 11:38:06
阅读次数:
170
方法参考 :http://ros-users.122217.n3.nabble.com/auto-start-ROS-launch-script-on-boot-up-td1687093.htmlStep 1: Write a script which contains ros commands l...
分类:
其他好文 时间:
2015-01-25 22:28:37
阅读次数:
227
元组:(用())和列表的不同:1、 列表更加灵活,可以任意的添加删除元素,元组一旦被创建就不可更改;>>> dir(test)['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__format_...
分类:
编程语言 时间:
2015-01-25 10:58:13
阅读次数:
187
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "ece" which ...
分类:
其他好文 时间:
2015-01-25 06:31:56
阅读次数:
141
contains()方法: contains()方法检查一个节点是不是另一个节点的后代。如body是html的后代,那么docuement.documentElement.contains(document.dody)就会返回true;在DOM3中有个函数也可以实现这个功能,或者说更全面,那就是c....
分类:
其他好文 时间:
2015-01-25 01:21:07
阅读次数:
588