
java
文章平均质量分 79
旭小白灬
这个作者很懒,什么都没留下…
展开
-
常用的正则表达式字符含义
\ 将下一个字符标记为一个特殊字符、或一个原义字符、或一个 向后引用、或一个八进制转义符。例如,'n' 匹配字符 "n"。'\n' 匹配一个换行符。序列 '\\' 匹配 "\" 而 "\(" 则匹配 "("。 ^ 匹配输入字符串的开始位置。如果设置了 RegExp 对象的 Multiline 属性,^ 也匹配 '\n' 或 '\r' 之后的位置。 $ 匹配输入字符串的结束...翻译 2018-03-19 23:28:20 · 403 阅读 · 0 评论 -
LeetCode刷题记录(第十六天)
Next Greater Element I原题目:You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1's elements in the corres...原创 2018-04-09 22:27:54 · 269 阅读 · 0 评论 -
LeetCode刷题记录(第十三天)
Island Perimeter原题目:You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The...原创 2018-04-02 23:34:19 · 216 阅读 · 0 评论 -
LeetCode刷题记录(第十四天)
Toeplitz Matrix原题目:A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given an M x N matrix, return True if and only if the matrix is Toeplitz.翻译:如果从左上角到右下角的...原创 2018-04-03 22:19:44 · 228 阅读 · 0 评论 -
LeetCode刷题记录(第十五天)
Reshape the Matrix原题目:In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.You're given a matrix repres...原创 2018-04-04 23:42:33 · 798 阅读 · 0 评论