1 Two Sum链接:https://leetcode.com/problems/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 t...
分类:
其他好文 时间:
2015-07-08 14:39:14
阅读次数:
131
Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.一道超难的题目,思想难,同时实现...
分类:
其他好文 时间:
2015-07-08 14:34:30
阅读次数:
156
Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concate...
分类:
其他好文 时间:
2015-07-08 12:57:18
阅读次数:
104
问题叙述性说明:Given an array S of n integers, find three integers inS such that the sum is closest to a given number, target. Return the sum of the three in...
分类:
其他好文 时间:
2015-07-08 12:46:57
阅读次数:
134
Kth Smallest Element in a BSTGiven a binary search tree, write a functionkthSmallestto find thekth smallest element in it.Note:You may assume k is alw...
分类:
其他好文 时间:
2015-07-08 12:24:28
阅读次数:
166
ProblemE: Matches
We can make digits with matches as shown below:
Given N matches, find the number of different numbers representable using the matches. We shall only make numbers greate...
分类:
其他好文 时间:
2015-07-08 11:06:32
阅读次数:
117
Find Peak Element
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return
its index.
The ar...
分类:
其他好文 时间:
2015-07-08 09:40:28
阅读次数:
132
/** * 获取table表格的数据项. */function getTableData(tableId){ var data = "{"; //定义数据变量 $("#" + tableId).find("...
分类:
编程语言 时间:
2015-07-08 01:59:50
阅读次数:
231
ls*.mp3 |xargs -imv {} /tmp或者find . -name "*.mp3" -exec mv {} /tmp \;
分类:
其他好文 时间:
2015-07-08 00:24:35
阅读次数:
111
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is...
分类:
其他好文 时间:
2015-07-07 22:49:52
阅读次数:
142