幻竹涂
幻竹涂
全部文章
分类
C++(5)
git操作刘(1)
Linux C语言(7)
题解(5)
归档
标签
去牛客网
登录
/
注册
幻竹涂的博客
全部文章
(共19篇)
题解 | #二叉树的中序遍历#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullpt...
2022-12-20
0
216
题解 | #求路径#
class Solution { public: /** * * @param m int整型 * @param n int整型 * @return int整型 */ int uniquePaths(int m, int n) ...
2021-07-31
0
327
题解 | #换钱的最少货币数#
class Solution { public: /** * 最少货币数 * @param arr int整型vector the array * @param aim int整型 the target * @return int整型 */ ...
2021-07-31
0
451
题解 | #跳台阶#
class Solution { public: void push(int node) { stack1.push(node); } int pop() { if (stack2.empty()) { while (...
2021-07-25
0
272
题解 | #用两个栈实现队列#
class Solution { public: void push(int node) { stack1.push(node); } int pop() { if (stack2.empty()) { while (...
2021-07-25
0
288
题解 | #排序#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ class Solut...
2021-07-25
0
385
Linux命令行中判断多个文件或目录是否存在 C语言实现
#在Linux命令行中判断多个文件或目录是否存在 Linux命令行中判断多个文件或目录是否存在 制作一个小程序,实现查看文件/目录/文件路径是否存在,并且能 够同时判断多个。 Linux C语言程序 命令行输入 显示结果
2021-07-24
0
1143
C语言实现linux 指令 cp 的功能
C语言源代码 #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <strings.h> int main(int c,char* v[]) { if(c <...
2021-07-24
0
769
Linux C语言实现通过fork创建进程写文件
实现功能 以写的方式打开一个文件,通过fork创建进程, 在一个进程中每隔3秒把当前时间写入文件, 另一个进程中每隔2秒把当前时间写入文件, 分别写五次。然后查看文件的变化。 源代码 /* 功能:以写的方式打开一个文件,通过fork创建进程, 在一个进程中每隔3秒把当前时间写入文件, 另一个进...
2021-07-24
0
714
Linux C语言实现在子进程中统计目录下文件数目
实现功能 在Linux系统中创建一个子进程,要求子进程对一个目录中的子目录或者文件进行数量统计(不计隐藏文件),并汇报给父进程,父进程等待子进程运行结束后,将子进程所得结果进行输出. 源代码如下 /* 功能:创建一个子进程,要求子进程对一个目录中的子 目录或者文件进行数量统计,并汇报给父进...
2021-07-24
0
827
首页
上一页
1
2
下一页
末页