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






星星眨眼睛

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2019年3月27日

96. Unique Binary Search Trees
摘要: 题目描述 Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n? Example: 解题思路: 在给定的序列[1,n]下,我们来构造二叉搜索树,首先对于序列中的每个数我们 阅读全文
posted @ 2019-03-27 20:16 星星眨眼睛 阅读(90) 评论(0) 推荐(0)
 
1013. Pairs of Songs With Total Durations Divisible by 60
摘要: 题目描述: In a list of songs, the i-th song has a duration of time[i] seconds. Return the number of pairs of songs for which their total duration in secon 阅读全文
posted @ 2019-03-27 19:35 星星眨眼睛 阅读(110) 评论(0) 推荐(0)