码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
LeetCode --- 93. Restore IP Addresses
题目链接:Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135", return ["255.255.11.135", "25...
分类:其他好文   时间:2015-04-09 11:57:09    阅读次数:191
重温 AMD、CMD
AMD规范源于CommonJS中的Transport/C规范,格式如下:define(id?, dependencies?, factory);模块名规范:1. 模块名由:多个string name 或者 '/'组成;2. string name遵从驼峰规则,或者:'.', '..';3. 模块名禁...
分类:其他好文   时间:2015-04-09 11:50:17    阅读次数:98
JavaScript全局函数 unescape() escape() encodeURI() decodeURI() decodeURIComponent() encodeURIComponent()
unescape() 函数可对通过 escape() 编码的字符串进行解码。语法unescape(string) string必需。要解码或反转义的字符串。返回值string 被解码后的一个副本。说明:该函数的工作原理是这样的:通过找到形式为 %xx 和 %uxxxx 的字符序列(x 表示十六进制的...
分类:编程语言   时间:2015-04-09 11:50:03    阅读次数:149
leetcode || 71、Simplify Path
problem: Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" click to show corner cases. Corner ...
分类:其他好文   时间:2015-04-09 10:39:36    阅读次数:106
leetcode || 72、Edit Distance
problem: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operation...
分类:其他好文   时间:2015-04-09 10:36:31    阅读次数:140
JAVA 字符串驻留池
一切从String str = new String("abc")说起... 这行代码形式上很简单,其实很复杂。有一个常见的Java笔试题就是问上面这行代码创建了几个String对象。 我刚开始很自然的觉得应该是创建了一个String对象,后来查阅资料,才发现,实际上创建了两个String对象。下面...
分类:编程语言   时间:2015-04-09 10:16:38    阅读次数:137
VBA 自动得到分数
' 将一个正数除以 y 返回一个整数或分数Function RFs(ByVal x As Integer) As String If x = 0 Then RFs = 0 Exit Function End If Dim div_result, div_...
分类:编程语言   时间:2015-04-09 10:13:51    阅读次数:190
Java统计无交集区间的最多个数(运用:如一天之内预约最多的客户)
import java.util.Scanner; public class Tesww {  public static void main(String[] args){   Scanner reader=new Scanner(System.in);   int n=reader.nextInt();   int [][]a =new int[n][2];   for(int...
分类:编程语言   时间:2015-04-09 09:01:05    阅读次数:399
java多线程——线程间的通讯
public class ThreadDemo3 { public static void main(String[] args) { Resource res = new Resource(); Input input = new Input(res); Output output = new Output(res); Thr...
分类:编程语言   时间:2015-04-09 08:51:35    阅读次数:157
SOUNDEX和DEFFerence函数使用
功能返回表示字符串声音的数字。语法SOUNDEX(string-expression)参数string-expression字符串。用法字符串的 SOUNDEX 函数值基于第一个字母和随后三个除 H、Y 和 W 之外的辅音。两个重复的字母按一个字母计算。例如,SOUNDEX( 'apples' )基...
分类:其他好文   时间:2015-04-09 06:08:21    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!