码迷,mamicode.com
首页 >  
搜索关键字:find maven    ( 43895个结果
LeetCode OJ - Max Points on a Line
题目: Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.解题思路: 第一反应:枚举两个点组成的直线,然后看其他的点在不在这条直线上,在此过程中统计最大.....
分类:其他好文   时间:2014-05-16 05:54:57    阅读次数:193
LeetCode-003 Longest Substring Without Repeating Characters
【题目】 Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the len...
分类:其他好文   时间:2014-05-15 14:40:14    阅读次数:320
[LeetCode]Single Number
Given an array of integers, every element appears twice except for one. Find that single one....
分类:其他好文   时间:2014-05-15 07:20:39    阅读次数:264
leetCode-002 Median of Two Sorted Arrays
leetCode-002 Median of Two Sorted Arrays 【题目】 There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 【题意】 有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:其他好文   时间:2014-05-15 04:42:05    阅读次数:274
LeetCode-001 Two Sum
LeetCode-001 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:其他好文   时间:2014-05-15 04:34:50    阅读次数:293
【python标准库学习】re模块
1.什么是re         正则表达式一门相对通用的语言,在python中也有对正则表达式的支持,那就是的内置re模块。正则表达式就是一系列的规则去匹配字符串然后进行相应的操作,这些规则网上一搜一大片,而re则是运用正则表达式来提供一系列的功能强大的接口让我们来调用。通常我们在对日志文件进行操作的时候会对正则表达式运用的比较多来得到我们希望得到的数据。 2.python中的转义符...
分类:编程语言   时间:2014-05-15 03:58:49    阅读次数:465
LeetCode-005 Longest Palindromic Substrin
【题目】 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 【题意】 题意是找出字符串S中最长回文子串,S最长为1000,保证有唯一解 【思路】 原字符串用特殊字符#间隔,如下所示: #a...
分类:其他好文   时间:2014-05-15 03:31:25    阅读次数:299
Install jar manually into maven and Nexus
Sometimesthemavenbuildingjustneedsoneormore3rdpartyjars,andthejarscannotbedownloadedandinstalledautomaticallybyInternet.Thenyoucaninstallthesejarsmanually.1st.Installa3rdpartyjarpackageintomavenrepositormvninstall:install-file-DgroupId=<jar‘sgroupdId>..
分类:其他好文   时间:2014-05-14 17:23:24    阅读次数:343
60行R++代码实现Lisp解释器
还没有处理lambda、上下文等,有待完善。 main { for putsl(eval(getsl)) } rstr eval(rstr s) { s=tokenize(s) v=s.split(' ') if v.get(0)!='(' return v.get(0) next=find(v.sub(2))+2 switch v.get(1) case '+' r...
分类:其他好文   时间:2014-05-14 15:32:34    阅读次数:323
给maven添加本地仓库
给maven添加本地仓库
分类:其他好文   时间:2014-05-14 13:25:14    阅读次数:300
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!