上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 71 下一页

2025年2月17日

LeetCode-59. 螺旋矩阵

摘要: 一、C实现 1. 参考https://www.acoier.com/2021/03/15/54.%20%E8%9E%BA%E6%97%8B%E7%9F%A9%E9%98%B5%EF%BC%88%E4%B8%AD%E7%AD%89%EF%BC%89/注: 里面有多种解法 2. 递归实现 #includ 阅读全文

posted @ 2025-02-17 14:39 Hello-World3 阅读(22) 评论(0) 推荐(0)

2025年2月16日

LeetCode-36.有效的数独

摘要: 一、C实现 1. 参考:https://juejin.cn/post/6893520419253714951 2. 实现 #include <stdio.h> /* 验证二维数组的打印 */ void arr_process(int (*arr)[3], int sz) { int i, j; fo 阅读全文

posted @ 2025-02-16 21:31 Hello-World3 阅读(12) 评论(0) 推荐(0)

LeetCode-209. 长度最小的子数组

摘要: 一、C实现 1. 参考:https://cloud.tencent.com/developer/article/2296482 //通过滑动窗口解决 2. 实现代码 #include <stdio.h> #include <stdlib.h> #define INT_MAX ((int)(~0U > 阅读全文

posted @ 2025-02-16 18:32 Hello-World3 阅读(22) 评论(0) 推荐(0)

LeetCode-134.加油站

摘要: 一、C实现 1. 参考:https://zhuanlan.zhihu.com/p/299991342 2. C实现 #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE(arr) (sizeof(arr)/sizeof(arr[0])) 阅读全文

posted @ 2025-02-16 16:35 Hello-World3 阅读(17) 评论(0) 推荐(0)

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 阅读(20) 评论(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 阅读(18) 评论(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 阅读(36) 评论(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 阅读(15) 评论(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 阅读(15) 评论(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 阅读(20) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 71 下一页

导航