码迷,mamicode.com
首页 >  
搜索关键字:character    ( 4920个结果
postgresql数据库varchar、char、text的比较
名字 描述character varying(n), varchar(n) 变长,有长度限制character(n), char(n) 定长,不足补空白text 变长,无长度限制简单来说,varchar的长度可变,而char的长度不可变,对于postgresql数据库来说varchar和char的区 ...
分类:数据库   时间:2018-10-21 12:14:35    阅读次数:253
MySql基础知识
一、管理数据库 1.1查看所有数据库 show databases; 1.2创建数据库 1)create database 数据库名; 2)指定默认字符集与字符集的默认校验规则 create databases 数据库名 default character set utf8 collate utf8 ...
分类:数据库   时间:2018-10-18 16:57:00    阅读次数:142
[leetcode]680. Valid Palindrome II有效回文II(可至多删一原字符)
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: 思路: 代码: ...
分类:其他好文   时间:2018-10-18 10:58:59    阅读次数:180
[leetcode]158. Read N Characters Given Read4 II - Call multiple times 用Read4读取N个字符2 - 调用多次
The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu ...
分类:其他好文   时间:2018-10-18 10:58:32    阅读次数:236
[leetcode]67. Add Binary 二进制加法
Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Example 1 ...
分类:其他好文   时间:2018-10-18 10:58:09    阅读次数:128
744. Find Smallest Letter Greater Than Target
Given a list of sorted characters letterscontaining only lowercase letters, and given a target letter target, find the smallest element in the list th ...
分类:其他好文   时间:2018-10-18 01:17:00    阅读次数:132
idea正则表达式查找代码的方法
find: 该正则表达式: initEcharts *:{1} *\{{1} 匹配: Summary of regular-expression constructsConstructMatches CharactersxThe character x\\The backslash characte ...
分类:其他好文   时间:2018-10-17 12:16:55    阅读次数:923
[leetcode]290.Word Pattern
题目 Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a le ...
分类:其他好文   时间:2018-10-17 11:00:45    阅读次数:97
mysql设置字符集CHARACTER SET
在 my.cnf 配置文件中设置相关选项,改变为相应的character set。 设置数据库编码(sudo vi /etc/mysql/my.cnf): 查看设置结果 更改my.cnf之前: 设置之后,重启mysql服务($ sudo service mysql restart): ...
分类:数据库   时间:2018-10-15 16:29:08    阅读次数:196
递归方法
使用递归方式判断某个字串是否是回文( palindrome ); 思路: 先定义一个判断回文的方法,先得到字符串的长度,利用charAt方法去比较第一个和最后一个字符,如果一样,前一个向后移一位,后一个向前移一位,再比较;如此下去,直到前一个等于后一个; 在主方法中调用这个方法,进行判断; 问题: ...
分类:其他好文   时间:2018-10-14 23:10:55    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!