最近工作编辑文件时误操作弄出一个特殊字符文件,怎么转换都删除不了,可能我转换的能力有限。。。 然后想到可以根据文件节点来删除,具体操作参考如下: 1. ls -i 列出当前目录下所有文件的节点ID和文件名 2. rm -rf "`find -inum ${NODE_ID}`", ${NOD...
分类:
系统相关 时间:
2015-06-06 17:59:26
阅读次数:
153
一:Minimum Size Subarray Sum
题目:
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return
0 instead.
...
分类:
其他好文 时间:
2015-06-06 16:37:38
阅读次数:
354
Given a 2D binary matrix filled with 0’s and 1’s, find the largest square containing all 1’s and return its area.For example, given the following matrix:1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0Return...
分类:
其他好文 时间:
2015-06-06 14:59:51
阅读次数:
138
题目:
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 the two numbers such that they add up to the target,w...
分类:
其他好文 时间:
2015-06-06 14:59:04
阅读次数:
124
题目:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which
the length is...
分类:
其他好文 时间:
2015-06-06 14:57:54
阅读次数:
120
Problem:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the follow...
分类:
其他好文 时间:
2015-06-06 14:44:05
阅读次数:
88
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2015-06-06 13:18:38
阅读次数:
123
题目描述
Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum.
For example:
Given the below binary tree and sum = 22, 5
/ \...
分类:
其他好文 时间:
2015-06-06 12:09:10
阅读次数:
117
题目描述
With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Diff...
分类:
其他好文 时间:
2015-06-06 10:38:53
阅读次数:
151
Write a function to find the longest common prefix string amongst an array of strings.求最长公共前缀:以第一个字符串为模板比较之后的字符串即可。 1 public class Solution { 2 pu...
分类:
其他好文 时间:
2015-06-06 10:33:58
阅读次数:
102