(1) 使用递归方式判断某个字串是否是回文( palindrome ); “回文”是指正着读、反着读都一样的句子。比如“我是谁是我” 使用递归算法检测回文的算法描述如下: A single or zero-character string is a palindrome. Any other str ...
分类:
其他好文 时间:
2018-10-14 19:21:39
阅读次数:
198
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
分类:
其他好文 时间:
2018-10-14 13:52:33
阅读次数:
122
“回文”是指正着读、反着读都一样的句子。比如“我是谁是我” 使用递归算法检测回文的算法描述如下: A single or zero-character string is a palindrome. Any other string is a palindrome if the first and ...
分类:
其他好文 时间:
2018-10-14 13:40:26
阅读次数:
104
在application配置文件中使用@出现异常: Exception in thread "main" while scanning for the next tokenfound character '@' that cannot start any token. (Do not use @ f ...
分类:
移动开发 时间:
2018-10-12 21:21:18
阅读次数:
1320
一、对比 1、utf8_general_ci 不区分大小写,utf8_general_cs 区分大小写 2、utf8_bin: compare strings by the binary value of each character in the string 将字符串每个字符串用二进制数据编译存 ...
分类:
数据库 时间:
2018-10-12 21:11:20
阅读次数:
188
开新项目常用的几个mysql命令 1.建立数据库 CREATE DATABASE `数据库名称` DEFAULT CHARACTER SET 数据库编码 COLLATE 排序方法; 例如: CREATE DATABASE `db1` DEFAULT CHARACTER SET UTF8 COLLAT ...
分类:
数据库 时间:
2018-10-11 23:48:45
阅读次数:
261
(有任何问题欢迎留言或私聊 && 欢迎交流讨论哦 Catalog [TOC] Problem:传送门 "Portal" 原题目描述在最下面。 给你两个二维矩阵,问第一个矩阵在第二个矩阵中的出现次数。 Solution: 二维hash: 直接二维矩阵h ...
分类:
其他好文 时间:
2018-10-11 21:54:49
阅读次数:
151
Lesson 03 —— 字符编码 字符编码(英语:Character encoding)也称字集码,是把字符集中的字符编码为指定集合中某一对象(例如:比特模式、自然数序列、8位组或者电脉冲),以便文本在计算机中存储和通过通信网络的传递。常见的例子包括将拉丁字母表编码成摩斯电码和ASCII。其中,A ...
分类:
其他好文 时间:
2018-10-11 18:40:46
阅读次数:
190
1.jsp 1.jsp脚本和注释 1)<%java代码%> 内部的java代码翻译到service方法的内部 2)<%=java变量或表达式%> 会被翻译成service 方法内部 out.print() 3)<%! java代码%> 会被翻译成servlet 的成员的内容 jsp注释:不同的注释可 ...
分类:
Web程序 时间:
2018-10-10 17:19:40
阅读次数:
230
MySQL之按月拆分主表并按月分表写入数据提高数据查询速度
分类:
数据库 时间:
2018-10-09 22:47:57
阅读次数:
484