码迷,mamicode.com
首页 >  
搜索关键字:find grep    ( 34568个结果
Ubuntu下串口minicom的配置
一般的配置方法过程如下: 1、安装软件 sudo apt-get install minicom 2、查看端口 找到端口: 这里要注意下,我们用的是USB 转串口,所以其设备是名称要注意,输入以下命令找到USB转串口的位置 dmesg | grep usb 假如有以下内容: [ 7415.893942] usbserial: USB Serial Driver core ...
分类:其他好文   时间:2014-06-09 23:29:39    阅读次数:242
leetcode——Two Sum 两数之和(AC)
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, whe...
分类:其他好文   时间:2014-06-09 23:14:45    阅读次数:264
LeetCode: Triangle [120]
【题目】 Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, given the following triangle [ [2], [3,4], [6,5,7], [4,1,8,3] ] The minimum path sum from top to...
分类:其他好文   时间:2014-06-08 17:52:45    阅读次数:235
POJ 2356 find multiple 鸽巢原理
POJ 2356 find multiple 题意: 输入一个正整数 N ,接着输入 N 和 正整数 nums[1], nums[2], ... ... , nums[N], 试问可否从这 N 个正整数中找出一组连续的数,它们的和能被 N 整除。 思路: 鸽巢原理,构造一个序列 sums[1] = nums[1], sums[2] = nums[1] + nums[2], ... ....
分类:其他好文   时间:2014-06-08 15:12:34    阅读次数:213
LeetCode: Best Time to Buy and Sell Stock [121]
【题目】 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, buy one and sell one share of the stock), design an algorithm to find the maximum profit. ...
分类:其他好文   时间:2014-06-08 15:11:58    阅读次数:298
SEED-DIM3517环境搭建过程
前面的步骤按说明书上就没有问题,但在移植内核时,当进行到 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig 出现以下错误: *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuco...
分类:其他好文   时间:2014-06-08 10:40:46    阅读次数:184
Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 方法 使用DFS对树进行遍...
分类:其他好文   时间:2014-06-08 10:26:33    阅读次数:207
linux用于后台监控指定程序运行状况的脚本(如果程序死了则重启程序)
#!/bin/sh while true do ps | grep "my_app" | grep -v "grep" > /dev/null #第一二个命令输出my_app的运行情况,第二个命令去掉带有grep的条目,然后把结果重定向到null里面不要回显 if [ "$?" -eq 1 ] # 1 : 表示有   ; 0 :表示没有 then ./my_app &...
分类:系统相关   时间:2014-06-08 10:06:03    阅读次数:346
重新发现Oracle太美之root.sh
如果你执行下以下命令基本上会在Oracle软件目录下会发现两个root.sh的脚本 [oracle@rh64 Templates]$ find /u01/ -name root.sh |xargs ls -ltr -rwxrwx--- 1 oracle oinstall  10 May 14 02:37 /u01/app/db11g/product/11.2.0/dbhome_1/invent...
分类:数据库   时间:2014-06-08 09:50:59    阅读次数:946
LeetCode——Two Sum
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, whe...
分类:其他好文   时间:2014-06-08 02:12:04    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!