摘要: C++常见算法总结 堆排序学习 bool operator()(const pair<int, int>& lhs, const pair<int, int>& rhs) { return lhs.second > rhs.second; //小顶堆 } priority_queue<pair<in 阅读全文
posted @ 2024-01-03 16:39 快乐气氛组阿宇 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 华为提纲 递归 70. 爬楼梯 class Solution { public: int climbStairs(int n) { vector<int> vec(n+1,0); vec[0] = 1; vec[1] = 1; for(int i = 2; i <= n; i++){ vec[i] 阅读全文
posted @ 2024-01-03 16:32 快乐气氛组阿宇 阅读(126) 评论(0) 推荐(0) 编辑
摘要: VCS和Verdi联合仿真小实验 基础准备 环境安装略过 新建一个文件夹,文件夹下一共需要四个文件,分别是头文件命名为 a.v、仿真文件命名为 a_tb.v、文件名的list文件命名为 dut.f、还有makefile文件 头文件 首先是头文件 a.v module a( clk , rst_n , 阅读全文
posted @ 2024-01-03 16:20 快乐气氛组阿宇 阅读(232) 评论(0) 推荐(0) 编辑