码迷,mamicode.com
首页 >  
搜索关键字:文件和目录属性ls which alias    ( 11410个结果
每天一个linux命令(1): which命令
0.学习时间: 2014-05-15which命令用来在PATH指定的路径中查找特定的文件, 并返回第一个找到的结果.1. 命令格式: which 文件名2.命令功能 一般使用which命令来查看某个系统命令(可执行文件)是否存在, 以及该命令所在的目录.3.命令参数 -n 指定文件名长度...
分类:系统相关   时间:2014-05-17 14:36:45    阅读次数:391
CareerCup之1.8 字符串移位包含问题
【题目】 原文: 1.8 Assume you have a method isSubstring which checks if one word is a substring of another. Given two strings, s1 and s2, write code to check if s2 is a rotation of s1 using only one...
分类:其他好文   时间:2014-05-16 01:50:08    阅读次数:311
Best Time to Buy and Sell Stock I && II && III
题目1:Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie,...
分类:其他好文   时间:2014-05-16 01:46:15    阅读次数:460
[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....
分类:其他好文   时间:2014-05-16 01:34:36    阅读次数:293
LeetCode 011 Container With Most Water
【题目】 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a contain...
分类:其他好文   时间:2014-05-16 01:32:47    阅读次数:406
Copy List with Random Pointer
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ...
分类:其他好文   时间:2014-05-15 21:00:06    阅读次数:325
linux 文件查找和压缩工具
文件查找1,which命行查找可执行文件,which 只会搜索系统$PATH目录2,whereis,查找可执行文件,并显示出此文件的man page文件,并且可以查找到系统的库目录3,locate 和slocat是一样的,ubuntu14里locate为mlocate,locate是根据locate...
分类:系统相关   时间:2014-05-15 09:32:01    阅读次数:388
Leetcode:Best Time to Buy and Sell Stock
Best Time to Buy and Sell Stock1Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to comp...
分类:其他好文   时间:2014-05-14 22:36:11    阅读次数:353
Pat(Advanced Level)Practice--1043(Is It a Binary Search Tree)
Pat1043代码题目描述:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contain...
分类:其他好文   时间:2014-05-14 22:03:25    阅读次数:487
leetcode -day 15 Distinct Subsequences
1、 ?? Distinct Subsequences  Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed from the original str...
分类:其他好文   时间:2014-05-14 20:22:58    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!