枚举类型: EnumTest测试结果: s和t引用的不是同一个对象;枚举类型不是基本类型;s和u引用的是同一个对象。 心得: 一个枚举类型,例如enum Size{SMALL,MEDIUM,LARGE};,里面包含的是常量。枚举的本质是类,若实例化出枚举类型的对象,并指向枚举类型里面的某一常量,当两 ...
分类:
其他好文 时间:
2018-10-07 13:50:07
阅读次数:
129
数值类型 MySQL支持所有标准SQL数值数据类型。 这些类型包括严格数值数据类型(INTEGER、SMALLINT、DECIMAL和NUMERIC),以及近似数值数据类型(FLOAT、REAL和DOUBLE PRECISION)。 关键字INT是INTEGER的同义词,关键字DEC是DECIMAL ...
分类:
数据库 时间:
2018-10-06 12:03:17
阅读次数:
211
描述 One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A to ...
分类:
其他好文 时间:
2018-10-06 00:34:45
阅读次数:
161
MySQL的数据类型 MySQL数据库支持的数据类型主要有以下几种: 整型 浮点型 字符 BLOB型 枚举和集合类型 JSON类型(MySQL5.7新增加的支持) 整型 整数类型是数据库中最基本的数据类型。标准SQL中支持INTEGER和SMALLINT这两类整数类型。MySQL数据库除了支持这两种 ...
分类:
数据库 时间:
2018-10-05 17:29:24
阅读次数:
267
Linux报错 no medium found on /dev/sr0 解决办法https://blog.csdn.net/u013395878/article/details/49662729 vsftpd登录时提示“vsftpd 500 OOPS: chroot”的问题当我们限定了用户不能跳出其 ...
分类:
系统相关 时间:
2018-10-02 14:12:39
阅读次数:
134
15. 3Sum (medium) 描述 Given an array of n integers, are there elements a, b, c in such that a + b + c = 0? Find all unique triplets in the array which ...
分类:
其他好文 时间:
2018-10-02 00:49:28
阅读次数:
241
Given n nodes labeled from 0 to n-1 and a list of undirected edges (each edge is a pair of nodes), write a function to check whether these edges make ...
分类:
其他好文 时间:
2018-10-01 14:10:37
阅读次数:
145
部署社区网站,搭建SVN、nginx、PHP,部署MFS并挂载,发布上线。
分类:
Web程序 时间:
2018-09-30 23:22:07
阅读次数:
347
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. 1. DP Set an array, first ...
分类:
其他好文 时间:
2018-09-29 01:19:26
阅读次数:
223
3. Longest Substring Repeating Character Difficulty:Medium The link: https://leetcode.com/problems/longest substring without repeating characters/ Des ...
分类:
其他好文 时间:
2018-09-29 00:46:23
阅读次数:
139