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
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
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
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
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
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
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
之所以将这三道题放在一起,是因为这三道题非常类似。 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
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
题目链接 题目要求: 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