• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
neverlandly
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年1月6日
Lintcode: Permutation Index II
摘要: Given a permutation which may contain repeated numbers, find its index in all the permutations of these numbers, which are ordered in lexicographical ... 阅读全文
posted @ 2016-01-06 09:11 neverlandly 阅读(1315) 评论(0) 推荐(0)
Lintcode: Permutation Index
摘要: Given a permutation which contains no repeated number, find its index in all the permutations of these numbers, which are ordered in lexicographical o... 阅读全文
posted @ 2016-01-06 07:56 neverlandly 阅读(2053) 评论(0) 推荐(0)
Lintcode: Wood Cut
摘要: Given n pieces of wood with length L[i] (integer array). Cut them into small pieces to guarantee you could have equal or more than k pieces with the s... 阅读全文
posted @ 2016-01-06 05:59 neverlandly 阅读(1015) 评论(0) 推荐(0)
Lintcode: Update Bits
摘要: Given two 32-bit numbers, N and M, and two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (e g , M becomes a s... 阅读全文
posted @ 2016-01-06 05:20 neverlandly 阅读(567) 评论(0) 推荐(0)
Lintcode: Route Between Two Nodes in Graph
摘要: Given a directed graph, design an algorithm to find out whether there is a route between two nodes.Have you met this question in a real interview? Yes... 阅读全文
posted @ 2016-01-06 04:58 neverlandly 阅读(710) 评论(0) 推荐(0)
Lintcode: Flip Bits
摘要: Determine the number of bits required to flip if you want to convert integer n to integer m.Have you met this question in a real interview? YesExample... 阅读全文
posted @ 2016-01-06 04:34 neverlandly 阅读(501) 评论(0) 推荐(0)
Leetcode: Maximum Size Subarray Sum Equals k
摘要: Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead.Example 1:Given n... 阅读全文
posted @ 2016-01-06 04:20 neverlandly 阅读(7425) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3