--if 条件判断语句 if 条件判断 then 命令序列1 else 命令序列2 fi [root@iscsi opt]# vim mkmydata.sh #!/bin/bash dir="/opt/mydata" if [ ! -e $dir ] then mkdir -p $dir fi [r ...
分类:
系统相关 时间:
2020-06-19 17:57:08
阅读次数:
67
原文链接 https://www.cnblogs.com/zhouzhendong/p/polynomial.html 由于之前的ppt版过于愚蠢,而且之前使用的编辑器不是markdown,我在这里重发一个网页版的。 警告:本文中代码只作为示例。事实上,有比这里的代码好写一万倍的写法。(可能哪天我会 ...
分类:
其他好文 时间:
2020-06-19 14:00:20
阅读次数:
49
1 常用函数 lpush rpush lpop rpop 2 通过索引获取列表中的元素 lindex key index 通过索引设置列表元素的值 LSET key index value 3 获取列表长度 llen key 4 获取列表指定范围内的元素 lrange key stat end ...
分类:
其他好文 时间:
2020-06-15 13:42:13
阅读次数:
39
暴力题解 思路 确定两端值 a c,找出符合要求的中间值 b 代码 //超时 public static List<List<Integer>> threeSum(int[] nums) { List<List<Integer>> lists = new ArrayList<>(); if (num ...
分类:
其他好文 时间:
2020-06-13 16:02:09
阅读次数:
72
1074 Reversing Linked List (25分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For ex ...
分类:
其他好文 时间:
2020-06-13 00:48:49
阅读次数:
54
题目 Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output t ...
分类:
其他好文 时间:
2020-06-10 23:00:04
阅读次数:
85
CollectionUtils工具类 CollectionUtils工具类是在apache下的,而不是springframework下的CollectionUtils 个人觉得在真实项目中CollectionUtils,可以使你的代码更加简洁和安全 下面我们就一起来探究一下 先从maven官方找到最 ...
分类:
编程语言 时间:
2020-06-02 13:11:37
阅读次数:
46
安装VIMapt-get install vim如果提示:Reading package lists… DoneBuilding dependency treeReading state information… DoneE: Unable to locate package vim先升级一下:ap ...
分类:
系统相关 时间:
2020-06-01 12:06:49
阅读次数:
61
迭代方法 注意哑结点的使用,这会省去很多判断 public ListNode mergeTwoLists(ListNode l1, ListNode l2){ ListNode result = new ListNode(-1); ListNode tempResult = result; whil ...
分类:
其他好文 时间:
2020-05-31 15:54:07
阅读次数:
52
一、测试用例数据库存放分析 1、测试用例相关表 QC 将测试用例主要存放在4张表上,TEST 表存放测试用例名,DESSTEPS表存放用例步骤,ALL_LISTS 表存放用例在系统上的路径,STEP _PARAMS 表存放步骤上所引用的参数。如下图: 1.1 ALL LISTS 表 系统和用户 li ...
分类:
其他好文 时间:
2020-05-29 09:53:06
阅读次数:
62