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

2017年1月17日

leetcode 448. Find All Numbers Disappeared in an Array
摘要: solution: The basic idea here is to label all appeared numbers in the array. Since we don't want to introduce extra space and given all numbers are po 阅读全文
posted @ 2017-01-17 21:22 us4ever 阅读(175) 评论(0) 推荐(0)
 
关于c++ bitset
摘要: bitset 的下标计数问题 example: 运行这个程序可以看到虽然bitset的pattern在屏幕上是从右边开始的,也就是5的bitset是0000...00101 但是在下标上,bs[0]=1, bs[1]=0, bs[2]=1, ... 而不是bs[31]=1, bs[30]=0, bs 阅读全文
posted @ 2017-01-17 19:45 us4ever 阅读(218) 评论(0) 推荐(0)
 
 

公告


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