码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
LeetCode: Combinations [077]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:其他好文   时间:2014-06-05 11:14:26    阅读次数:255
【leetcode】Scramble String
题目:给定两个串s1和s2,对s1串,我们可以将其分割成两部分,这两部分都不为空,而被分割成的两部分,又可以递归的进行分割,直到不能进行分割为止,也就是只有一个字符的时候,就不在分割了。问s2是否由s1的这种分割表示中,某步分割成的两部分交换得到的。这种交换可以在不同的分割点进行多次。 /* s1 |__________p____________| ...
分类:其他好文   时间:2014-06-05 11:09:06    阅读次数:207
LeetCode: Minimum Window Substring [076]
【题目】 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is "BANC". Note: If there is no such window in S that covers ...
分类:Windows程序   时间:2014-06-05 10:03:07    阅读次数:473
字符串的分割操作(strtok,split)
一:strtok C/C++:char *strtok(char s[], const char *delim); s 代表需要分割的字符串,delim代表分割的标志,参数都为比选!返回指向分割部分的指针,如果没有分割成功就返回NULL. 一个简单的例子:...
分类:其他好文   时间:2014-06-05 10:01:51    阅读次数:139
Python中strip方法的妙用
【开胃小菜】 当提到python中strip方法,想必凡接触过python的同行都知道它主要用来切除空格。有以下两种方法来实现。 方法一:用内置函数 # if __name__ == '__main__':     str = ' Hello world '     print '[%s]' %str.strip() # 方法二:调用string模块中方法 # import s...
分类:编程语言   时间:2014-06-05 09:27:48    阅读次数:330
C# FolderBrowserDialog 的用法
string defaultPath = ""; FolderBrowserDialog dialog = new FolderBrowserDialog(); //打开的文件夹浏览对话框上的描述 dialog.Description = "请选择一个文件夹"; //是否显示对话框左下角 新建文件夹 按钮,默认为 true dialog.ShowNewFolderButton = false; /...
分类:其他好文   时间:2014-06-05 08:23:34    阅读次数:224
ThreadPool原理分析
看下ThreadPoolImpl的构造函数: /** * This constructor is used to create an unbounded threadpool */ public ThreadPoolImpl(ThreadGroup tg, String threadpoolName) { inactivityTimeout = ORB...
分类:其他好文   时间:2014-06-05 07:41:45    阅读次数:386
使用Spring RMI调用远程方法
Spring有多种调用远程的方式,今天学习了一下远程方法调用(RMI)。 RMI需要服务端和客户端 我们先从服务器开始 我的代码结构 package rmi; public interface ServerRmiI { public String sayHi(String name); } package rmi; public class Ser...
分类:编程语言   时间:2014-06-05 06:57:55    阅读次数:207
OpenJDK 源代码阅读之 String
OpenJDK 源代码阅读之 String...
分类:其他好文   时间:2014-06-05 06:51:59    阅读次数:213
C++ Primer 学习笔记_89_用于大型程序的工具 --异常处理[续2]
用于大型程序的工具--异常处理[续2]八、自动资源释放 考虑下面函数:void f() { vector v; string s; while (cin >> s) { v.push_back(s); } string *p = new string[v.size()]; //... delete p; } 在正...
分类:编程语言   时间:2014-06-05 06:07:27    阅读次数:393
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!