码迷,mamicode.com
首页 >  
搜索关键字:elements    ( 4737个结果
做几个leetcode数组题二
1.Longest Consecutive Sequence Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecu...
分类:编程语言   时间:2014-11-19 22:27:00    阅读次数:447
poj 2601 Simple calculations
Simple calculations Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 6559   Accepted: 3291 Description There is a sequence of n+2 elements a0, a1, ..., an+1...
分类:其他好文   时间:2014-11-19 22:21:23    阅读次数:197
LeetCode: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 zero. Note: Elements in a tri...
分类:其他好文   时间:2014-11-19 18:44:45    阅读次数:133
LeetCode——Spiral Matrix II
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [...
分类:其他好文   时间:2014-11-19 16:05:08    阅读次数:143
LeetCode——Spiral Matrix
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ] ...
分类:其他好文   时间:2014-11-19 12:42:43    阅读次数:149
Java数据结构学习系列之——数组(1)
import javax.management.RuntimeErrorException; public class MyArray { private long array[]; private int elements;//用于记录数组中实际数据的个数 public MyArray(){ array=new long[50];//数组默认长度为50; } public...
分类:编程语言   时间:2014-11-19 11:08:08    阅读次数:193
java数据结构系列之——数组(2):有序数组
package Array; /** * 排序数组,向数组中添加元素时维护数组的有序性; * @author wl * */ public class MyOrderArray { private long array[]; private int elements;//用于记录数组中实际数据的个数 public MyOrderArray(){ array=new long...
分类:编程语言   时间:2014-11-19 11:07:28    阅读次数:196
java数据结构系列之——数组(1)
import javax.management.RuntimeErrorException; public class MyArray { private long array[]; private int elements;//用于记录数组中实际数据的个数 public MyArray(){ array=new long[50];//数组默认长度为50; } public...
分类:编程语言   时间:2014-11-19 11:06:32    阅读次数:220
POJ 2167 Irrelevant Elements 质因数分解
Irrelevant Elements Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 2231   Accepted: 550 Case Time Limit: 2000MS Description Young cryptoanalyst Georgie...
分类:其他好文   时间:2014-11-19 11:03:00    阅读次数:203
LeetCode:Subsets
问题描述: Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2014-11-19 10:55:12    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!