题目
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,...
分类:
其他好文 时间:
2014-06-19 12:08:20
阅读次数:
270
最近在启动监听器的时候收到了TNS-01201: Listener cannot find executable...的错误提示。这个错误还真是一个一直没有碰到过的错误。咋一看还真不明白是怎么一回事呢。下面是错误的具体描述与解决方案。1、故障描述#在启动监听器时收到了TNS-01201错误,监听器无法找到可执行文件oracle@DevDB02:~> lsnrctl start LISTENER_U...
分类:
其他好文 时间:
2014-06-19 11:36:26
阅读次数:
408
一、find 命令格式1、find命令的一般形式为;find pathname
-options [-print -exec -ok ...]2、find命令的参数;pathname:
find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。-print: find命令将匹配的文...
分类:
系统相关 时间:
2014-06-16 07:56:44
阅读次数:
356
题目
Given a sorted array of integers, find the starting and ending position of a given target value.
Your algorithm's runtime complexity must be in the order of O(log n).
If the target i...
分类:
其他好文 时间:
2014-06-15 16:53:32
阅读次数:
177
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2014-06-13 20:36:56
阅读次数:
280
Given an unsorted integer array, find the first
missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1]
return 2.Your algorithm s...
分类:
其他好文 时间:
2014-06-13 20:25:38
阅读次数:
241
packageIOtest;importjava.io.File;publicclassTestFile{//inlinuxprivateFilefoder=newFile("/home/eblly");TestFile(){find(foder);System.out.println("=====...
分类:
编程语言 时间:
2014-06-13 19:55:49
阅读次数:
342
以往一直都是crontab+shell调用java程序,最近需要反过来,使用java调用shell程序,实现定时管理,今天总结一下。基础内容:java的java.lang.Runtime类提供了exec静态方法,可以执行本地脚本程序事例:package
study;import java.io.In...
分类:
编程语言 时间:
2014-06-13 18:15:21
阅读次数:
321
原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given
a binary tree, find its maximum depth.The maximum depth is the number of n...
分类:
编程语言 时间:
2014-06-12 13:55:34
阅读次数:
210