码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
leetcode Find Peak Element python
Find Peak ElementA peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and ...
分类:编程语言   时间:2015-06-14 06:59:21    阅读次数:127
leetcode Intersection of Two Linked Lists python
Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the followin...
分类:编程语言   时间:2015-06-14 06:59:10    阅读次数:128
leetcode Single Number python
Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.python code:class Solution: # @param {integ...
分类:编程语言   时间:2015-06-14 06:58:03    阅读次数:123
leetcode Single Number II python
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.python code:class Solution: # @par...
分类:编程语言   时间:2015-06-14 06:57:52    阅读次数:330
[Algorithms] Longest Common Subsequence
The Longest Common Subsequence (LCS) problem is as follows:Given two sequences s andt, find the length of the longest sequence r, which is a subsequen...
分类:其他好文   时间:2015-06-14 00:30:15    阅读次数:177
[Algorithms] Longest Common Substring
The Longest Common Substring (LCS) problem is as follows:Given two strings s and t, find the length of the longest string r, which is a substring of b...
分类:其他好文   时间:2015-06-13 23:04:33    阅读次数:120
LeetCode Word Search II
Given a 2D board and a list of words from the dictionary, find all words in the board.Each word must be constructed from letters of sequentially adjac...
分类:其他好文   时间:2015-06-13 20:04:43    阅读次数:119
LeetCode之“动态规划”:Minimum Path Sum && Unique Paths && Unique Paths II
之所以将这三道题放在一起,是因为这三道题非常类似。 1.Minimum Path Sum 题目链接 题目要求: Given amxngrid filled with non-negative numbers, find a path from top left to bottom rig...
分类:其他好文   时间:2015-06-13 16:59:46    阅读次数:125
Linux下批量替换文件内容方法
1:查找find . -type f -name "*.html"|xargs grep ‘yourstring’2:查找并替换find -name '要查找的文件名' | xargs perl -pi -e 's|被替换的字符串|替换后的字符串|g'perl -pi -e在Perl 命令中加上-e...
分类:系统相关   时间:2015-06-13 14:12:51    阅读次数:145
223 -- LeetCode之“数学”:Rectangle Area
题目链接 题目要求: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top r...
分类:其他好文   时间:2015-06-13 14:03:18    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!