随笔分类 -  LeetCode

摘要:https://leetcode-cn.com/contest/biweekly-contest-65/ 阅读全文
posted @ 2021-11-27 10:09 Wang~ze君 阅读(25) 评论(0) 推荐(0)
摘要:https://leetcode-cn.com/contest/biweekly-contest-63/ 阅读全文
posted @ 2021-11-26 15:34 Wang~ze君 阅读(24) 评论(0) 推荐(0)
摘要:513. 找树左下角的值 207. 课程表 373. 查找和最小的K对数字 1889. 装包裹的最小浪费空间 阅读全文
posted @ 2021-11-26 11:53 Wang~ze君 阅读(24) 评论(0) 推荐(0)
摘要:https://leetcode-cn.com/contest/weekly-contest-267/ 阅读全文
posted @ 2021-11-23 11:52 Wang~ze君 阅读(85) 评论(0) 推荐(0)
摘要:两栋颜色不同且距离最远的房子 // 解法一 // 暴力双重循环 class Solution { public: int maxDistance(vector<int>& colors) { int n = colors.size(); int ans = 1; for (int i = 0; i 阅读全文
posted @ 2021-11-22 16:00 Wang~ze君 阅读(30) 评论(0) 推荐(0)