码迷,mamicode.com
首页 >  
搜索关键字:mapreduce_shuffle do    ( 12392个结果
shell脚本编程之循环控制结
shell脚本编程之循环控制结构 循环控制之for循环      语法结构1          for  Variable  in List          do              commands          done      语法结构2          for  Variable  in List;do              commands  ...
分类:其他好文   时间:2014-06-16 19:49:18    阅读次数:218
LeetCode - Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example: Given "25525511135", return ["255.255.11.135", "255.255.111.35"]. (Order do...
分类:其他好文   时间:2014-06-16 19:24:42    阅读次数:248
ping命令扫描局域网内的主机
linux:禁pingvim/proc/sys/net/ipv4/icmp_echo_ignore_all0代表允许1代表禁止ping.sh#!/bin/bash foriin{2..5}; do host=122.152.172.$i ping-c2$host>/dev/null if[$?=0] then echo"122.152.172.$iisconnected" else echo"122.152.172.$iisnotconnected" fi done显示结果..
分类:其他好文   时间:2014-06-16 15:37:33    阅读次数:235
Swift流程控制
使用if和switch来创建流程条件,使用for-in、for、while、do-while来创建循环。条件和变量外面的小括号时可选的,但是循环体外面的大括号时必选的。如下代码1let individualScore=[75,43,103,87,12]2var teamScore=0;3forsco...
分类:其他好文   时间:2014-06-15 13:54:00    阅读次数:210
OpenCV的阈值化函数threshold
在OpenCV中,threshold用来进行对图像(二维数组)的二值化阈值处理通过查找OpenCV在线文档,发现存在很多函数:其函数原型如下:1. C版本的:函数原型:void cvThreshold( const CvArr* src,CvArr* dst, double threshold,do...
分类:其他好文   时间:2014-06-15 13:09:45    阅读次数:198
ruby简单的基础 2
1、代码块代码块是用大括号或者do...end括起来的一系列代码。{ #this is a block}do #this is a blockend[1,2,3,4,5].each {|i| puts i}[1,2,3,4,5].each do |i|puts iend这2中写法效果是一样的,用{}可能更像C的风格2、作用域Ruby程序只会在3个地方关闭前一个作用域,同时打开一个新的作用域: 类定...
分类:其他好文   时间:2014-06-14 17:45:04    阅读次数:150
[LeetCode] Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only onceand return the new length.Do not allocate extra space for ...
分类:其他好文   时间:2014-06-14 16:59:58    阅读次数:221
leetcode--Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他好文   时间:2014-06-14 13:15:06    阅读次数:199
SHELL学习笔记----IF条件判断,判断条件
SHELL学习笔记----IF条件判断,判断条件前言: 无论什么编程语言都离不开条件判断。SHELL也不例外。if list then do something here elif list then do another thing here else do something else here...
分类:其他好文   时间:2014-06-14 09:40:46    阅读次数:204
leetcode--Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:其他好文   时间:2014-06-14 08:52:31    阅读次数:265
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!