09 2021 档案

摘要:基础知识: https://leetcode-cn.com/problems/satisfiability-of-equality-equations/solution/shou-hui-tu-jie-shou-xie-unionfind-bing-cha-ji-bu-/ 130、被围绕的区域 具体 阅读全文
posted @ 2021-09-09 22:35 最近饭吃的很多 阅读(80) 评论(0) 推荐(0) 编辑
摘要:855、考场就座 基本思想: 将每两个相邻考生看成线段的两个端点,新安排考生就是找最长的线段,然后让该考生在中间把这个线段‘二分’,重点就是给他分配的位置。 看不懂的时候自己动手写一个例子 代码: class ExamRoom(object): def __init__(self, N): self 阅读全文
posted @ 2021-09-01 22:41 最近饭吃的很多 阅读(89) 评论(0) 推荐(0) 编辑