全部文章
You have a graph of n nodes. You are given an integer n and an array edges where edges[i] = [ai, bi] indicates that there is an edge between ai and bi ...
删除原有mariadb [root@test mysql]# rpm -qa | grep mariadb mariadb-devel-5.5.52-1.axs7.x86_64 mariadb-libs-5.5.52-1.axs7.x86_64 [root@test mysql]# rpm -e - ...
渐渐失去了学生的身份 ————也还有一份倔强,在一直对抗着我摘下那顶面具。 岁月像云彩一样,朝着东边翻涌。儿时的眼神透过云彩,滚滚的麦浪,可以肆意奔跑的田野,高高的大楼,呜呜的火车声和下过雨后的电务段球场... 曾经以为,上了大学,用力感受精彩的世界便是一件水到渠成的事情了,可是后来才发现那些逝去的 ...
内核地址:http://www.kernel.org/查看 ?下载&解压最新版 wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.60.tar.gz tar -zxvf linux-5.10.60.tar.gz ?Linux内核 ...
基于socket的网络应用概述 以一个C/S结构的网络应用为例,客户端和服务器端使用socket通信的流程图如下: 从Linux内核的角度来看,一个套接字就是通信的一个端点。从Linux程序的角度来看,套接字就是一个有相应描述符的文件。(注:Linux中有普通文件、目录、套接字三种,Linux中一切 ...
#13. 找出数组中重复的数字 https://www.acwing.com/problem/content/14/ 思路: 由于数据范围在0-n-1,如果出现的数字都只有一次 我们可以构造出0,1,2,,,n-1的数组 所以我们每次循环吧数字交换到对应值的下标 操作完毕后查看是否满足nums[i] ...
cat命令查看文件内容 [root@localhost test]# cat test.sh #!/bin/bash 参数 -n 给所有行加行号 [root@localhost test]# cat -n test 1 #version=DEVEL 2 # System authorization ...
任何一个数取反加1之后, 第一个1至右 的位数上的数字都相同 然后再和原数 相与, 把第一个1保留, 其他变为0 int result = num & (~num+1); ...
// 创建型 1. Factory method / Static Factory 2. Abstract Factory 3. Builder 4. ProtoType 5. Singleton // 结构型 6. Adaptor 7. Bridge 8. Composite 9. Decorat ...