大意:给定两个字符串word1和word2,为了使word1变为word2,可以进行增加、删除、替换字符三种操作,请输出操作的最少次数 Example 1: Input: word1 = "horse", word2 = "ros" Output: 3 Explanation: horse -> r ...
分类:
其他好文 时间:
2018-11-01 20:31:41
阅读次数:
153
计算机只能处理数字,所以要处理任何文本,只能先将文本转化为数字才行。 Bit(bit)(b) 位或比特,是计算机运行的基础,属于二进制的范畴。数据传输大多是以【位】为单位,一个位即代表一个0或者1(即二进制),每8个位组成一个字节。 Byte(B)字节,是计算机中文件大小的基本计量单位。数据存储就是 ...
分类:
其他好文 时间:
2018-11-01 16:54:48
阅读次数:
166
替换:String replaceAll(regex,str);如果regex中有定义组,可以在第二参数中通过$符号获取正则表达式中的已有的组。 public staticvoid replaceAllDemo(String str,String reg,String newStr) { str = ...
分类:
其他好文 时间:
2018-11-01 00:54:50
阅读次数:
140
--定义一个存储过程:获取给定部门的工资总和(通过out参数) 要求:部门号和工资总额定义为参数select * from DEPT;select * from SALGRADE; create or REPLACE PROCEDURE addSal(dept_id NUMBER,sumsal ou ...
分类:
其他好文 时间:
2018-10-31 20:02:12
阅读次数:
110
要实现联动效果注意两点: 第一要可以监听到select的change事件; 第二异步加载的内容,需要重新渲染后才可以 正常使用。 html结构: <form class="layui-form batchinput-form" action="" id="box-form"> <div class= ...
分类:
其他好文 时间:
2018-10-31 15:50:27
阅读次数:
544
You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there exists a pe ...
分类:
其他好文 时间:
2018-10-31 12:34:23
阅读次数:
161
Oracle存储过程基本语法 存储过程 1 CREATE OR REPLACE PROCEDURE 存储过程名 2 IS 3 BEGIN 4 NULL; 5 END; 行1: CREATE OR REPLACE PROCEDURE 是一个SQL语句通知Oracle数据库去创建一个叫做skeleton ...
分类:
数据库 时间:
2018-10-31 11:25:48
阅读次数:
185
//输出一段utf-8编码的html $this->show('<p>欢迎使用 <b>ThinkPHP</b>!</p>','utf-8'); 字符串替换$br=str_replace("/>", "/><br />", $con); php把文本框回车转换成html换行 $aa=@ereg_rep ...
分类:
Web程序 时间:
2018-10-31 10:36:59
阅读次数:
217
xml 中如果包含部分 ascii 控制字符(小数字)则 chrome会报告如下类型错我: 解决办法:replace 这些字符 参看文档:https://support.microsoft.com/en-us/kb/315580 原文地址:https://blog.csdn.net/isaisai/ ...
分类:
其他好文 时间:
2018-10-30 22:47:32
阅读次数:
475
HashMap源码 先翻译,然后加上注释解释代码 ...
分类:
其他好文 时间:
2018-10-29 22:07:13
阅读次数:
190