• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
neverlandly
博客园    首页    新随笔    联系   管理    订阅  订阅
2015年2月5日
Lintcode: Digit Counts
摘要: Count the number of k's between 0 and n. k can be 0 - 9.Exampleif n=12, in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], we have FIVE 1's (1, 10, 11, 12... 阅读全文
posted @ 2015-02-05 12:25 neverlandly 阅读(3330) 评论(0) 推荐(0)
Lintcode: Compare Strings
摘要: Compare two strings A and B, determine whether A contains all of the characters in B.The characters in string A and B are all Upper Case letters.Examp... 阅读全文
posted @ 2015-02-05 06:04 neverlandly 阅读(1383) 评论(0) 推荐(1)
Lintcode: First Position of Target (Binary Search)
摘要: Binary search is a famous question in algorithm.For a given sorted array (ascending order) and a target number, find the first index of this number in... 阅读全文
posted @ 2015-02-05 05:26 neverlandly 阅读(775) 评论(0) 推荐(0)
Lintcode: Binary Representation
摘要: Given a (decimal - e g 3.72) number that is passed in as a string,return the binary representation that is passed in as a string.If the number can no... 阅读全文
posted @ 2015-02-05 04:56 neverlandly 阅读(2021) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3