- 博客(6)
- 资源 (6)
- 收藏
- 关注
原创 判断一个整数是否满足完美平方?
问题: Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library function such as sqrt. Example 1: In...
2018-02-28 17:46:35 304
原创 Java_实现身份证信息提取个人信息
1.身份证提起出生年月信息 注意:有15位和18位public String idCard2Birthday(String no) { String birthday = ""; if (no.length() == 15) { String tempYear = no.substring(6, 8); St...
2018-02-27 15:24:12 3254
原创 CH2_JS词法结构笔记
** 字符集 ** 注释 ** 直接量 ** 标识符和保留字 ** 可选的分号 1.JS 程序是用Unicode字符集编写的。2.JS 是区分大小写的程序。3.标识符 就是一个名字。4.保留字:如 default,delete,instanceof,debugger,do ,while5.ES3将Java所有的关键字都作为自己的保留字。 ab...
2018-02-27 09:13:12 124
原创 addDigits 加数字
问题: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only on...
2018-02-26 17:13:10 330
原创 Math--PowerofTwo
问题: Given an integer, write a function to determine if it is a power of two. 解决思路: 求一个数是2的n次幂,则由于2的n次幂的二进制最高位都是1,所以利用&运算,即可解决。 代码如下:public boolean isPowerOfTwo(int n) { if(n<1){...
2018-02-26 09:08:36 295
原创 Linux实用命令笔记
1.df -h 查看磁盘使用率; find /usr -size +100M 查看usr目录下文件大小超过100M的文件。 du -h –max-depth=1 查看各个文件大小2.meticrs // 米,计量器 toggle //切换键,切换3.jdk环境变量设置(ubuntun)4.解压命令 tar -zxvf file.tar.gz unzi
2018-02-02 13:05:11 139
MobaXterm_Portable_v20.3.zip
2020-07-21
WebService
2018-02-13
Java编码规范总结
2017-11-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人