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

2025年2月16日

LeetCode-11.装最多水的容器

摘要: 一、C实现 1. 参考:https://www.jb51.net/article/217205.htm 2. 代码 #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0])) 阅读全文

posted @ 2025-02-16 15:33 Hello-World3 阅读(9) 评论(0) 推荐(0)

LeetCode-26.有序数组中去除重复项(26-I, 80-II)

摘要: 一、LeetCode-26.有序数组中去除重复项 1. 参考: https://www.jb51.net/article/217344.htm 2. 实现 #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE(arr) (sizeof(a 阅读全文

posted @ 2025-02-16 14:24 Hello-World3 阅读(11) 评论(0) 推荐(0)

LeetCode-55.跳跃游戏(55-I, 45-II)

摘要: 一、LeetCode-55.跳跃游戏 1. 参考:https://www.jb51.net/article/217248.htm 2. 代码实现 #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE(arr) (sizeof(arr)/s 阅读全文

posted @ 2025-02-16 10:56 Hello-World3 阅读(29) 评论(0) 推荐(0)

2025年2月15日

LeetCode-85.连续矩形面积

摘要: 一、C实现 1. 参考 https://www.cnblogs.com/GarrettWale/p/15800968.html 2. 实现代码 #include <stdio.h> #include <string.h> #define ARRAY_SIZE(arr) (sizeof(arr)/si 阅读全文

posted @ 2025-02-15 20:59 Hello-World3 阅读(6) 评论(0) 推荐(0)

2025年2月14日

LeetCode-84.直方图中最大的矩形

摘要: 一、C实现 1. 参考:https://www.jb51.net/article/217227.htm 2. 实现代码 #include <stdio.h> #include <string.h> #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0]) 阅读全文

posted @ 2025-02-14 20:36 Hello-World3 阅读(8) 评论(0) 推荐(0)

LeetCode-12.整数转化成罗马数字 & LeetCode-13.罗马数字转化成整数

摘要: 一、整数转化成罗马数字 1. 参考: https://www.jb51.net/article/217252.htm 2. C实现 #include <stdio.h> #include <stdlib.h> #include <ctype.h> #define ARRAY_SIZE(arr) (s 阅读全文

posted @ 2025-02-14 14:59 Hello-World3 阅读(9) 评论(0) 推荐(0)

2025年2月13日

LeetCode-42.收集雨水

摘要: 一、题目描述 计算最大能接雨水量。 对应Example: Input: [0,1,0,2,1,0,1,3,2,1,2,1]Output: 6 二、实现C代码 1. 解法1 通过动态规划思想,选求出下标i位置最左侧的最大高度,然后求出下标i位置最右侧最大高度,两个高度求较小值,此较小值与此位置的高度差 阅读全文

posted @ 2025-02-13 21:48 Hello-World3 阅读(15) 评论(0) 推荐(0)

2025年1月17日

QNX-11—tracelogger-3-添加traceevent

摘要: 一、示例 可按如下方法添加,添加完后,在 monmentic 软件中分析它。 void sdmmc_trace_start(void) { TraceEvent(_NTO_TRACE_START); } void sdmmc_trace_stop(void) { TraceEvent(_NTO_TR 阅读全文

posted @ 2025-01-17 15:00 Hello-World3 阅读(157) 评论(0) 推荐(0)

tracer ftrace笔记(23)—— 各tracer使用笔记

摘要: 基于msm-5.4 一、各个tracer简介 默认使能的tracer: /sys/kernel/debug/tracing # cat available_tracers blk wakeup_dl wakeup_rt wakeup preemptirqsoff preemptoff irqsoff 阅读全文

posted @ 2025-01-17 14:42 Hello-World3 阅读(56) 评论(0) 推荐(0)

IO性能工具

摘要: 一、iotop 1. 用法 /# iotop --help Usage: iotop [-h] [-P] [-d <delay>] [-n <cycles>] [-s <column>] -a Show byte count instead of rate -d Set the delay betw 阅读全文

posted @ 2025-01-17 10:38 Hello-World3 阅读(50) 评论(0) 推荐(0)

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

导航