码迷,mamicode.com
首页 >  
搜索关键字:字符串剔除    ( 2个结果
replace与regexp_replace区别使用以及like与instr差异
repalce(str_source,str1,str2)把str_source中str1字符串替换为str2字符串,当str2为null或‘‘时,与下个作用相同replace(str_source,str1)把str_source中的str1字符串剔除regexp_replace(str_source,pattern_str)把str_source中的pattern_str字符串剔除Oracle中like与instr之间..
分类:其他好文   时间:2016-01-04 00:12:50    阅读次数:1068
算法题:剔除字符串(很有意思)
/* 两个字符串A、B。从A中剔除存在于B中的字符。 比如A = “hello world”, B = "er",那么剔 除之后A变为"hllo wold"。空间复杂度要求是O(1) ,时间复杂度越优越好。 */ #include #include using namespace std; void Grial(char *str,char *ptr) {...
分类:编程语言   时间:2015-08-02 06:24:28    阅读次数:127
2条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!