码迷,mamicode.com
首页 >  
搜索关键字:abc    ( 8006个结果
2565: 最长双回文串 - BZOJ
Description 顺序和逆序读起来完全一样的串叫做回文串。比如acbca是回文串,而abc不是(abc的顺序为“abc”,逆序为“cba”,不相同)。 输入长度为n的串S,求S的最长双回文子串T,即可将T分为两部分X,Y,(|X|,|Y|≥1)且X和Y都是回文串。Input一行由小写英...
分类:其他好文   时间:2014-06-07 05:29:34    阅读次数:195
Leetcode Letter Combinations of a Phone Number
const char* lookup[] = {" ", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxy...
分类:其他好文   时间:2014-06-07 05:04:11    阅读次数:192
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: 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
LeetCode: Valid Number [066]
【题目】 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement to be ambiguous. You should gather all requirements up front before imple...
分类:其他好文   时间:2014-06-04 23:45:09    阅读次数:388
Valid Number
Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:其他好文   时间:2014-06-04 20:54:02    阅读次数:326
一个截取字符串函数引发的思考
背景 前些天,遇到这样一个问题,问题的内容如下: 要求编写一个截取字符串的函数,输入为一个字符串和字节数,输出为按字节截取的字符串。但是要保证汉字不被截半个,如“我ABC”, 4,截取后的效果应该为“我AB”,输入“我ABC汉DEF”, 6,应该输出为“我ABC”,而不是“我ABC+汉的半个”。 问题 刚看到这个问题的时候,以为还是很简单的,但写出来...
分类:其他好文   时间:2014-06-01 14:47:29    阅读次数:404
apk反编译
方法一:准备工具:1. apktool 2. Smali2Java 步骤:1. 解压下载的文件得到apktool文件夹2. 进入apktool文件夹打开CMD执行命令 apktool.bat d –f[apk路径.apk] [输出文件夹]如将abc.apk放在当前文件夹下, 准备编译到abc文件夹下...
分类:其他好文   时间:2014-05-29 10:32:59    阅读次数:247
linux查看文件权限
ls -l abc (abc是文件名) 那么就会出现相类似的信息,主要都是这些:drwxr-xr-x 一共有10位数 其中: 最前面那个 d 代表的是类型 目录文件 中间那三个 rw- 代表的是所有者(user) 然后那三个 r-x 代表的是组群(group) 最后那三个 r-x 代表的...
分类:系统相关   时间:2014-05-28 22:36:17    阅读次数:286
Java中字符串比较时==和equals的区别
==是比较两个字符串引用的地址是否相同,即是否指向同一个对象,而equals方法则比较字符串的内容是否相同。例如String a = "abc";String b = "abc";a == b返回true,a.equals(b)同样返回true,这是为什么呢?原来程序在运行时有一个字符串池,创建字符...
分类:编程语言   时间:2014-05-26 17:29:08    阅读次数:320
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!