码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
java开始到熟悉72-76
本次内容:异常机制1、为什么需要异常2、异常3、error类4、exception类5、exception类中的unchecked exception 举例:6、常用异常处理方法a.try注意:一个try语句块至少得带一个finally语句块或catch语句块 1 package array; 2....
分类:编程语言   时间:2014-05-12 16:17:54    阅读次数:406
【LeetCode】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 ...
分类:其他好文   时间:2014-05-10 20:06:26    阅读次数:404
[ACM] poj 2823 Sliding Window(单调队列)
Sliding Window Time Limit: 12000MS   Memory Limit: 65536K Total Submissions: 36212   Accepted: 10723 Case Time Limit: 5000MS Description An array of size n ≤ 106 is gi...
分类:Windows程序   时间:2014-05-02 22:56:12    阅读次数:570
【LeetCode】Sort Colors
LeetCode OJGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or...
分类:其他好文   时间:2014-05-02 17:37:37    阅读次数:468
java开始到熟悉70-71
本次内容:file类 1 package array; 2 /** 3 * file类 4 */ 5 import java.io.File; 6 import java.io.IOException; 7 8 public class file { 9 public static ...
分类:编程语言   时间:2014-05-02 16:50:03    阅读次数:387
java开始到熟悉66-69
本次内容:DateFormat类1、DateFormat类 1 package array; 2 /** 3 * 时间和字符串之间的转化 4 */ 5 import java.text.DateFormat; 6 import java.text.ParseException; 7 impor...
分类:编程语言   时间:2014-05-02 14:16:19    阅读次数:518
Leetcode: Remove Elements
一次性通过的,比较顺利,从读题到编写到检查到通过,14分50秒,我在不断进步中,相信经过一段时间联系,这种题可以一眼就写出来,不超过5分钟。这道题应该说方法跟 Remove Duplicates from sorted Array挺类似的My Solution: 1 public class Sol...
分类:其他好文   时间:2014-05-02 12:56:10    阅读次数:260
leetcode: Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2014-05-02 09:54:11    阅读次数:269
如何查找linux系统安装了多少perl模块
join函数利用字符将数组中的元素分割开.[root@localhost~]#find`perl-e‘@array=join("","@INC");print"@array";‘`-name*.pm|wc-l547这个例子是利用空格分开了要查找的路径,然后find可以查找所有的路径下匹配*.pm的文件,我一共查到了547个模块.
分类:系统相关   时间:2014-05-02 04:13:56    阅读次数:311
[leetcode] Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他好文   时间:2014-05-02 00:37:20    阅读次数:349
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!