• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
crazycream
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2020年7月4日

32. 最长有效括号
摘要: 我的代码居然过了。。 class Solution: def expand(l,s): r = False for item in l: left = item[0] right = item[1] if left>=1 and s[left-1]=='(' and right+1<len(s) a 阅读全文
posted @ 2020-07-04 23:32 crazycream 阅读(142) 评论(0) 推荐(0)
 
leetcode 391 完美矩形
摘要: from typing import List from collections import Counter class Solution: def isRectangleCover(self, rectangles) -> bool: rects = [Rectangle(*item) for 阅读全文
posted @ 2020-07-04 00:05 crazycream 阅读(116) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3