遇见YY

导航

 
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

2020年10月7日

摘要: #include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> int main(int argc, char *argv[]) { int buf_size = 1024; uint8_t *buf = 阅读全文
posted @ 2020-10-07 20:54 一骑红尘妃子笑! 阅读(198) 评论(0) 推荐(0)
 
摘要: #include <stdint.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> int main() { int fdr = open("dm.mp4", O_RDONLY); int fdw = open("cp.mp4" 阅读全文
posted @ 2020-10-07 19:30 一骑红尘妃子笑! 阅读(219) 评论(0) 推荐(0)
 
摘要: // // Created by liu on 2020/10/7. // #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdio.h>struct Node { int id; int *data; } 阅读全文
posted @ 2020-10-07 11:38 一骑红尘妃子笑! 阅读(272) 评论(0) 推荐(0)
 
摘要: #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdio.h>#define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? 阅读全文
posted @ 2020-10-07 10:48 一骑红尘妃子笑! 阅读(352) 评论(0) 推荐(0)
 

2020年9月30日

摘要: 时间:2020年9月30日,学习FFmpeg! 学习版本:N-99352-gd8ce8e8 下载: https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 安装: 1. Type `./configure` to create the configur 阅读全文
posted @ 2020-09-30 16:50 一骑红尘妃子笑! 阅读(1232) 评论(0) 推荐(0)
 

2020年9月26日

摘要: 给定一个非负整数数组,a1, a2, ..., an, 和一个目标数,S。现在你有两个符号 + 和 -。对于数组中的任意一个整数,你都可以从 + 或 -中选择一个符号添加在前面。 返回可以使最终数组和为目标数 S 的所有添加符号的方法数。 示例: 输入:nums: [1, 1, 1, 1, 1], 阅读全文
posted @ 2020-09-26 15:09 一骑红尘妃子笑! 阅读(125) 评论(0) 推荐(0)
 
摘要: 给定一棵二叉树,你需要计算它的直径长度。一棵二叉树的直径长度是任意两个结点路径长度中的最大值。这条路径可能穿过也可能不穿过根结点。 本质上:遍历二叉树,对于任意一个节点计算其左右子树深度之和,然后寻找到一个最大值! class Solution { int MaxDepths = 0; public 阅读全文
posted @ 2020-09-26 11:18 一骑红尘妃子笑! 阅读(235) 评论(0) 推荐(0)
 
摘要: class TreeNode { public int val; public TreeNode left; public TreeNode right; public TreeNode() { } public TreeNode(int val) { this.val = val; } } pub 阅读全文
posted @ 2020-09-26 09:59 一骑红尘妃子笑! 阅读(164) 评论(0) 推荐(0)
 

2020年9月25日

摘要: 给定一个用字符数组表示的 CPU 需要执行的任务列表。其中包含使用大写的 A - Z 字母表示的26 种不同种类的任务。任务可以以任意顺序执行,并且每个任务都可以在 1 个单位时间内执行完。CPU 在任何一个单位时间内都可以执行一个任务,或者在待命状态。然而,两个相同种类的任务之间必须有长度为 n 阅读全文
posted @ 2020-09-25 22:14 一骑红尘妃子笑! 阅读(209) 评论(0) 推荐(0)
 

2020年9月22日

摘要: 一个整型数组 nums 里除两个数字之外,其他数字都出现了两次。请写程序找出这两个只出现一次的数字。要求时间复杂度是O(n),空间复杂度是O(1)。 class Solution { public static void main(String[] args) { Solution solution 阅读全文
posted @ 2020-09-22 10:38 一骑红尘妃子笑! 阅读(225) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页