11 2014 档案

摘要:Shell编程一.for循环生成列表 {起始数..结束数}命令生成列表 `seq [起始数] [步进长度] 结束数 ` for l in {1..5};do for l in `seq 5`;do求1到100的累加和1 #!/bin/bash2 declare -i SUM=03 4 for l ... 阅读全文
posted @ 2014-11-24 22:51 晓风_7 阅读(2089) 评论(0) 推荐(0)
摘要:题目: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2). You are given a targe... 阅读全文
posted @ 2014-11-10 12:27 晓风_7 阅读(112) 评论(0) 推荐(0)
摘要:题目:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not poss... 阅读全文
posted @ 2014-11-02 21:12 晓风_7 阅读(140) 评论(0) 推荐(0)