• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
neverlandly
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年11月26日
Leetcode: Sum of Two Integers && Summary: Bit Manipulation
摘要: 转自https://discuss.leetcode.com/topic/49771/java-simple-easy-understand-solution-with-explanation/2,注意里面对于减法的讲解 have been confused about bit manipulati 阅读全文
posted @ 2016-11-26 11:53 neverlandly 阅读(348) 评论(0) 推荐(0)
Leetcode: Max Sum of Rectangle No Larger Than K
摘要: Reference: https://discuss.leetcode.com/topic/48875/accepted-c-codes-with-explanation-and-references/2 The naive solution is brute-force, which is O(( 阅读全文
posted @ 2016-11-26 08:01 neverlandly 阅读(642) 评论(0) 推荐(0)
Leetcode: Count Numbers with Unique Digits
摘要: Analysis: A number of unique digits is a number which is a combination of unrepeated digits. So, we can calculate the total number. for number with n 阅读全文
posted @ 2016-11-26 04:20 neverlandly 阅读(337) 评论(0) 推荐(0)
Leetcode: Design Twitter
摘要: 注意需要maintain一个time stamp, 每次postTweet时++。还有要注意unfollow的时候,不能unfollow自己 关于PriorityQueue还看到这一种写法,挺简单的: 1 Set<Integer> users = userMap.get(userId).follow 阅读全文
posted @ 2016-11-26 01:58 neverlandly 阅读(432) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3