随笔分类 -  LeetCode

摘要:240. 搜索二维矩阵 II TAG:二分 链接: https://leetcode.cn/problems/search-a-2d-matrix-ii/ class Solution { public: bool searchMatrix(vector<vector<int>>& matrix, 阅读全文
posted @ 2024-01-01 19:47 Kerolt 阅读(59) 评论(0) 推荐(0)
摘要:> [https://leetcode.cn/problems/palindrome-linked-list/](https://leetcode.cn/problems/palindrome-linked-list/) ### (1)将链表转化为数组进行比较 比较呆板的做法,空间复杂度为`O(n) 阅读全文
posted @ 2023-09-07 15:22 Kerolt 阅读(55) 评论(0) 推荐(0)