最新发布第19页
排序
【数据结构】初识二叉树+C语言实现
我初步学习了二叉树这种“一对多”的非线性数据结构。我理解了树的度、深度、叶子节点等基本概念,并区分了满二叉树和完全二叉树。我重点研究了二叉树的先序、中序、后序三种遍历方式,并通过C...
【递归】2的幂
递归法: class Solution: def isPowerOfTwo(self, n: int) -> bool: if n==1: return True if n<=0 or n%2!=0: return Fals...
【C】if-else if-else和switch-case
if-else if-else #include<stdio.h> int main() { int type=0; scanf('%d',&type); if (type==1) printf('早'); else if (type==2) printf('中'); else if (type==3) printf('晚'); else...
【Linux】记录一次逆天&抽象的PVE故障修复记录
我记录了一次修复PVE服务器启动失败的经历。故障原因是安装ntpdate与系统网络服务ifupdown2冲突,导致开机时卡死。由于系统使用了ZFS文件系统,标准的救援模式无法进入,我只能通过Ventoy启动Ub...
【Python】学生信息管理系统示例
import os.path #导入os.path模块 def menm(): #菜单 print('==========================学生信息管理系统==========================') print('----------------------------...
【C++】四舍五入
#include <iostream> #include <cmath> using namespace std; float a[100000]; int main(){ int n; cin >> n; for (int i=0;i<n;i++){ cin >> a[i]; } for (int i=0;i<n;i++){ cou...









































