解压缩并移动到指定目录 #解压缩 tar -zxvf apache-tomcat-8.5.23.tar.gz 1 #变更目录名 mv apache-tomcat-8.5.23 tomcat 1 #移动目录 mv tomcat/ /usr/local/ 1 #常用命令 #启动 /usr/local/t ...
分类:
系统相关 时间:
2020-06-16 13:17:44
阅读次数:
57
有效电话号码 shell 编程题目 考察了很多方面的内容 shell 命令 grep | sed | awk 正则表达式 shell 的转义处理 1. 地址 https://leetcode-cn.com/problems/valid-phone-numbers/ 2. 解法 你可以假设一个有效的电 ...
分类:
其他好文 时间:
2020-06-16 00:34:28
阅读次数:
121
在计算机性能调试领域里,profiling 是指对应用程序的画像,画像就是应用程序使用 CPU 和内存的情况。 Go语言是一个对性能特别看重的语言,因此语言中自带了 profiling 的库,这篇文章就要讲解怎么在 golang 中做 profiling。 Go性能优化 Go语言项目中的性能优化主要 ...
分类:
编程语言 时间:
2020-06-15 21:11:17
阅读次数:
61
题目描述 输入一个正整数数组,把数组里所有数字拼接起来排成一个数,打印能拼接出的所有数字中最小的一个。例如输入数组{3,32,321},则打印出这三个数字能排成的最小数字为321323。 先将数组的元素排序(按字符序排) 然后从头到尾连接就可以 class Solution { public: st ...
分类:
编程语言 时间:
2020-06-15 11:48:55
阅读次数:
56
descption We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}. (Note that '0' is not included.) Now, we writ ...
分类:
其他好文 时间:
2020-06-13 17:10:49
阅读次数:
64
问题: 给定一个字符串s, 和一个字串操作数组queries [i, j, k] 即对字符串s的i~j字符组成的子串,进行重新排列,且可从中最多(up to)选取k个字母,替换成任意字母, 使得子串能够成为回文字符串。 如果可以返回true,否则返回false。 Example : Input: s ...
分类:
其他好文 时间:
2020-06-13 12:46:59
阅读次数:
55
LeetCode 91 动态规划 Decode Ways 解码方法LeetCodeA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> ... ...
分类:
其他好文 时间:
2020-06-13 00:18:17
阅读次数:
56
stylus是什么? 1. stylus是css预处理器,具有对css可编程,编写快速便捷的特性. 2. stylus源自于Node.js ,2010年产生 , 主要用来给Node项目进行css预处理支持 . stylus应用场景? 1.标准的stylus语法就是没有花括号,没有分号,没有冒号 , ...
分类:
其他好文 时间:
2020-06-11 13:22:35
阅读次数:
92
回文数https://leetcode-cn.com/problems/palindrome-number/ class Solution(object): def isPalindrome(self, x): xx=str(x) if(xx==xx[::-1]): return True else ...
分类:
其他好文 时间:
2020-06-10 21:26:47
阅读次数:
62
1 function formatNumber1 (number) { const base = 3 number = Number(number) // 只要包含字符 都会转为NaN let numberStr = number.toString() // NaN => 'NaN' if (num ...
分类:
其他好文 时间:
2020-06-09 16:12:47
阅读次数:
71