码迷,mamicode.com
首页 >  
搜索关键字:elements    ( 4737个结果
4Sum
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic...
分类:其他好文   时间:2014-10-21 00:40:33    阅读次数:285
3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:其他好文   时间:2014-10-20 22:55:57    阅读次数:307
leetcode第25题--Remove Element
problem:Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doe...
分类:其他好文   时间:2014-10-20 19:20:57    阅读次数:241
Convert Sorted List to Binary Search Tree
[leetcode]Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:其他好文   时间:2014-10-20 11:49:53    阅读次数:114
HDU - 4267 A Simple Problem with Integers(树状数组的逆操作)
Description Let A1, A2, ... , AN be N elements. You need to deal with two kinds of operations. One type of operation is to add a given number to a few numbers in a given interval. The other is to q...
分类:编程语言   时间:2014-10-18 16:59:56    阅读次数:321
LeetCode-Subsets ZZ
LeetCode:SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution...
分类:其他好文   时间:2014-10-17 10:27:24    阅读次数:293
5 Convert Sorted List to Binary Search Tree_Leetcode
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.这题和sort list等题都比较相似,需要先用快慢指针的方法找到链表的中点,然后...
分类:其他好文   时间:2014-10-16 22:31:43    阅读次数:217
Spiral Matrix II
[leetcode]Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order....
分类:其他好文   时间:2014-10-15 12:36:40    阅读次数:188
浅析inline-block--使用inline-block创建布局
inline-block前端程序猿们肯定不陌生,它是display属性的一个取值。 之所以称之为inline-block。是因为它兼具行内元素(inline-element)和块级元素(block-element)的特征。块级元素(block elements),来源于CSS盒子模型。块级元素...
分类:其他好文   时间:2014-10-14 15:58:08    阅读次数:205
POJ 1458 && HDU 1159 Common Subsequence (最長公共子序列)dp
鏈接: http://poj.org/problem?id=1458 Description: A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z =...
分类:其他好文   时间:2014-10-13 16:43:09    阅读次数:257
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!