日常干货
去除前后空格 {代码...}
2021-06-01
如何在 Linux 中以脚本模式运行 Top
top 命令用于显示 Linux 系统中的实时处理活动,以及内核管理的任务。它将显示 CPU 和内存使用情况及其他信息,例如正在运行的程序。可以利用脚本模式的选项将top命令输出传输到其他应用程序或文件。使用 Top 命令脚本模式的方法在 Centos8 中,我们执行本文中的命令。下面命令按照 CPU 使用率对数据进行排序,并打印命...
2022-04-05
10 New DevOps Tools to Watch in 2023
With less than two months left in 2022, today, I’d like to look at some new (relatively) DevOps tools we might want to follow in the next year because they might boost engineering productivity to the next level.
2022-11-08
大数据学习之路之Hadoop
Hadoop是一个开源的分布式计算平台,用于存储大数据,并使用MapReduce来处理。Hadoop擅长于存储各种格式的庞大的数据,任意的格式甚至非结构化的处理。两个核心:
L - Hdu Girls' Day
题目:L - Hdu Girls' Day Hdu Girls' Day is a traditional activity in Hdu. Girls in Hdu participate in the activity and show their talent and skill. The girls who win in the activity will become the Hdu's vivid ambassadors(形象大使). There are many students in Hdu concern the activity. Now it's th...
2018-01-16
L - Hdu Girls' Day
题目:L - Hdu Girls' Day Hdu Girls' Day is a traditional activity in Hdu. Girls in Hdu participate in the activity and show their talent and skill. The girls who win in the activity will become the Hdu's vivid ambassadors(形象大使). There are many students in Hdu concern the activity. Now it's th...
2018-01-16
209. Minimum Size Subarray Sum
题目:Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead.
2016-07-25
Reverse Words in a String
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the".
2016-06-10
Python基本数据类型-list-tuple-dict-set详解
Python基本数据类型-list-tuple-dict-set数据类型表示方法特性list列表用方括号表示:[]list是一种有序的集合,可以随时添加和删除其中的元素。和C++数组的区别就是类型可不同。tuple元组用圆括号表示:()和list相比唯一的差异在于元组是只读的,不能修改。dict字典用花括号表示:{}列表是有序的对象结合,字典是无序的...
2020-09-24
【html5】缓动函数在动画中的应用
缓动类型: Linear:无缓动效果 Quadratic:二次方的缓动(t^2) Cubic:三次方的缓动(t^3) Quartic:四次方的缓动(t^4) Quintic:五次方的缓动(t^5) Sinusoidal:正弦曲线的缓动(sin(t)) Exponential:指数曲线的缓动(2^t) Circular:圆形曲线的缓动(sqrt(1-t^2)) Elastic:指数衰减的正弦曲线缓动 超过范...
2016-03-23
算法题解:查找由'('和')'组成的字符串中,所有的合法括号子串
输入的字符串s由'('和')'组成,其中存在一些子串是合法的括号字符串。比如(()())是合法的括号字符串;()())(())就不是合法的括号字符串,但是其中的()()和(())是合法的括号字符串。
2017-10-30
S3C2440移植uboot之支持NANDFLASH操作
之前由于nand部分报错,直接注释了 u-boot-2012.04.01\include\configs\smdk2440.h 中的#define CONFIG_CMD_NAND。现在我们去掉注释,重新编译。报错如下 我们没有定义CONFIG_S3C2410导致的 可以看到下面有2440的NAND结构体
2020-12-27
Go 快速入门指南 - 字符
ASCII 码只需要 7 bit 就可以完整地表示,但只能表示英文字母在内的128个字符。 为了表示世界上大部分的文字系统,发明了 Unicode, 它是 ASCII 的超集,包含世界上书写系统中存在的所有字符,并为每个代码分配一个标准编号(称为Unicode CodePoint),在 Go 中称之为 rune。
2022-12-22
LeetCode 力扣 132.分割回文串 II
题目描述(困难难度) 和 131 题 一样,可以在任意位置切割字符串,需要保证切割后的每个子串都是回文串。问最少需要切割几次。 和 131 题 用相同的分析方法即可。 解法一 分治 大问题化小问题,利用小问题的结果,解决当前大问题。 举个例子。 {代码...} 然后中间的过程求 abb 的最小切割次数,求 aab 的最小切割次数等...
2020-04-24
[LeetCode] 写一个正则表达式匹配
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '' Matches zero or more of the preceding element. The matching should cover the entire input string (not partial). The function prototype should be: bool isMatch(const char *s, const char *p) Som...
浏览器事件循环和我的头发
深入理解Event Loop {代码...} 点击btn输出:L1、M1、L2、M2、S1、S2大致过程是这样的: 从浏览器的事件监听线程出发,看到btn被点击 将console.log("S1")交给浏览器中的定时器线程 将console.log("M1")加入微任务队列 将console.log("L1")加入JS主线程 JS主线程执行任务输出“L1” 执行执行栈为空,微队列任务加入其中,...
2020-05-28
2021.12.19刷题笔记--滑动窗口系列
窗口的思路是存在一个窗口。满足条件,这时候改变窗口的大小,到不满足条件时,移动窗口的左边界限 {代码...} 套用公式3. 无重复字符的最长子串滑动窗口一道很典型的题。 {代码...} 再用公式套用一个比较复杂的题目30. 串联所有单词的子串 {代码...} 再比如,我们再套一道题187. 重复的DNA序列这个题目稍为简单 {代码...}
2021-12-19