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

06 2015 档案

 
Kth Largest Element in an Array
摘要:【重要的事情写在前面】先来说说swap的实现方式,这道题我本来自己写了个swap的算法,除了通常的swap(type& a, type& b){ type t = a; a = b; b = a;}的写法外,还有一种【极客】写法:swap(type& a, type& b){ a ^= b;... 阅读全文
posted @ 2015-06-14 14:04 踩死大象 阅读(148) 评论(0) 推荐(0)
Maximal Square
摘要:Problem:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the follow... 阅读全文
posted @ 2015-06-06 13:11 踩死大象 阅读(176) 评论(0) 推荐(0)
 

公告


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