
Java学习笔记
文章平均质量分 59
Kyogre6105
1直2在奔3路上
9是8敢取7买房
气456
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java正则表达式总结笔记
java正则表达式特点:用一些特定的符号来表示一些代码操作,这样就简化书写。以下正则表达式4个功能。 1、匹配:string matcher方法 字符类: [abc] 这个位只能是abc [^abc] 这个位不能是abc [a-zA-Z] a到z或A到Z,两头的字母都包括 [a-d[m-p]] a到d或m到p 取并集 [a-z&&[def]] def 取交集原创 2016-08-31 23:27:40 · 554 阅读 · 0 评论 -
Leetcode-Sum of Two Integers
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return 3. 解题思路:两个数的异或值可以得到两个数不进位的加法,如1 xor 2 = 0001 xor 0010 = 0原创 2016-08-27 18:15:00 · 466 阅读 · 0 评论 -
LeetCode-First Unique Character in a String
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the string contain only lowercase lett原创 2016-08-27 16:06:39 · 520 阅读 · 0 评论