正则表达式REGular EXPression 的简写元字符匹配次数位置锚定分组--------------------------------------元字符. 匹配任意单个字符[] 匹配指定范围内任意单个字符[^] 匹配指定范围外的 [:space:] 空白字符 [:punct:] 标点字.....
分类:
系统相关 时间:
2015-05-04 21:46:06
阅读次数:
523
https://leetcode.com/problems/palindrome-number/Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some ...
分类:
其他好文 时间:
2015-05-04 21:35:51
阅读次数:
127
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Could you devis...
分类:
其他好文 时间:
2015-05-04 18:06:38
阅读次数:
119
两种方法一:手动设置MaxPermSize大小:Windows:修改TOMCAT_HOME/bin/catalina.bat(Linux下为catalina.sh),在“echo"UsingCATALINA_BASE:$CATALINA_BASE"”上面加入以下行:setJAVA_OPTS=%JAVA_OPTS%-server-XX:PermSize=128M-XX:MaxPermSize=512mLinux:catalina.sh下为:J..
分类:
编程语言 时间:
2015-05-04 15:52:44
阅读次数:
136
题目描述
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in ...
分类:
其他好文 时间:
2015-05-04 15:35:18
阅读次数:
140
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space...
分类:
其他好文 时间:
2015-05-04 13:45:22
阅读次数:
120
problem:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
Hide Tags
Linked List Two
Pointers
...
分类:
其他好文 时间:
2015-05-04 12:05:09
阅读次数:
148
problem:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
Hide Tags
Linked Lis...
分类:
其他好文 时间:
2015-05-04 11:58:22
阅读次数:
133
A geometrical view of perceptron 感知器的几何视图Weight-space 权值空间在这个空间中,每一个感知器中的权值都表示一维,而空间中的一点则代表了所有权值的特定集合,假设消除阈值,则每个训练样本都可以看做通过起点的超平面。So, points in the sp...
分类:
其他好文 时间:
2015-05-04 11:27:23
阅读次数:
177
problem:
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetco...
分类:
其他好文 时间:
2015-05-04 10:04:14
阅读次数:
96